XAML Conditional Compilation

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.

Leave a Comment