Is there a way to comment out some code in XAML that only executes in debug mode #15692
Unanswered
IronEaterBeast
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Sort of? You can use the various design time stuff. You can also make a custom mark up extension that just does nothing if in debug mode/returns a true/false value which can be used to set the visibility on things. You could also probably make a custom content control that renders nothing if it's in debug. But I have not tried that. XAML is as the name implies, a mark up language. This sort of thing is generally done in the code behind. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Similar to
in C#?
Beta Was this translation helpful? Give feedback.
All reactions