I am working on a legacy product. I need to make regions of a complex UI optional, based on build constants. It is not feasible to move these regions into controls, so I a
What about this:
public class BuildConstants { public bool IsDebug { get { #if DEBUG return true; #else return false; #endif } } }
and the xaml: