XAML Conditional Compilation

c#, compilation, conditional-statements, xaml

Solution

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.

Problem

Is there an easy way to use the same conditional compilation symbol that I'm using for my c# code, in my xaml files?

Original source

Related problems