I’ve got some code written in C# WPF, and I’ve got some code for debugging, which I currently compile on or off for debug or release mode. How can I enable or disable UI controls which are currently written in my XAML based on C# preprocessor definitions?
Share
You can add some code in the constructor that enables/disables the elements: