Is there an easy way to use the same conditional compilation symbol that I'm using for my c# code, in my xaml files?
There is some support for conditional compilation in XAML. It's not the same as in C#, code, though. The trick is to use AlternateContent with Requires against something flagged Ignorable. By doing this, you can actually have portions of your xaml unavailable based on conditions, and turn on or off.
AlternateContent
Requires
2.1m questions
2.1m answers
60 comments
57.0k users