Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

What is the plan for TargetPlatform.Desktop ?

$
0
0

As well as Android and iOS, I am building my app to run on Windows phones, tablets and desktops. I run it on my Windows development PC and (working around various XF bugs) it works a treat.

However, whilst debugging another issue, I happened to notice that when I am running the app on my local development PC, I actually get Device.Idiom = TargetPlatform.Tablet rather than TargetPlatform.Desktop . I am using a desktop PC, with a physical keyboard and a non-touch sensitive monitor. Not surprisingly, I was expecting TargetPlatform.Desktop. On investigation, I see the XML comment for Desktop actually says "(Unused) Indicates that Forms is running on a computer."

This makes me think that I won't be the only person to have been using Device.Idiom incorrectly, Thankfully, it's easily fixed, but it makes me wonder:
(1) is it intended for TargetPlatform.Desktop to be used at some point?
(2) if yes, what will be the distinguishing factors between a Tablet and a Desktop?
(3) if no, wouldn't it be better to either get rid of TargetPlatform.Desktop, or at least market it as deprecated?


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>