locked
#if WINDOWS_PHONE_APP in XAML

    Question

  • Hello,

    in C#, in Universal Apps, I can write this:

    #if WINDOWS_PHONE_APP

    Is there a XAML equivalent?

    I'd like to declare some resources in a shared App.xaml file that only target Windows Phone.


    • Edited by Lukasz C Friday, April 18, 2014 5:53 PM
    Friday, April 18, 2014 5:53 PM

Answers

  • No, Xaml doesn't support conditional compiling. You'll need to separate that out into the target specific projects.

    --Rob

    Friday, April 18, 2014 6:16 PM
    Owner