I suggest you ...

Allow conditional compile statements in XAML markup

This suggestion is migrated to Developer Community. Please use below link to view the current status.
https://developercommunity.visualstudio.com/content/idea/351269/allow-conditional-compile-statements-in-xaml-marku.html
Allow the XAML markup editor to allow conditional compile statements so that a developer could have #ifdef statements in their markup

433 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Tim Heuer shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    2 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Anonymous commented  ·   ·  Flag as inappropriate

        A classic example for Uservoice: It takes MSFT 3 years to show any reaction, which is the just promise to "provide an update soon". About one year later and nothing...

        This is about to implement simple #ifdef in the XAML compiler. No fancy stuff, no macro expansions, just conditional compilation. What's the problem?

      • James Abbott commented  ·   ·  Flag as inappropriate

        This!! Lots of times when I'm debugging I'll use a standard resource dictionary, but when in Release Mode I want to use a cached (I'm sure you've heard of it) StaticResourceDictionary. This is just not possible as far as I can tell currently, I'm sure there are dozens of other uses for this though!

      Feedback and Knowledge Base