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
1.4m articles
1.4m replys
5 comments
57.0k users