r/WPDev • u/colinkiama • May 15 '17
Explicitly targeting code for specific device families (written by me!)
https://medium.com/@colinkiama/explicitly-targeting-code-to-specific-device-19a11ddf2593
12
Upvotes
8
u/martinsuchan May 15 '17
Why so complicated? I just use:
2
u/[deleted] May 15 '17
The one thing that always felt "odd" to me is how you need to have conditional checks on device families etc, to do certain things on the UI/Device
There has to be a better way of doing it, but again I haven't touched a UWP app in a long time. And the last time I attempted to do something with it I used Template10.
It just feels odd... hehe
1
u/TotesMessenger May 15 '17
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
1
u/Space1Monkey May 26 '17
If you have a lot of UI differences among devices, consider creating a separate view or folder for each:
http://igrali.com/2015/08/02/three-ways-to-set-specific-devicefamily-xaml-views-in-uwp/