Im not rly a desktop dev but as far as I know every xaml file has its own cs file with interface controls and properties defined in Init method, that's where you get that method from
when you use || and the left statement is true, than program will not check the right statement because its useless, so thats why you can have this in this order working