It is necessary that the application goes into full screen mode only on the phones. I tried the only way.

ApplicationView view = ApplicationView.GetForCurrentView(); view.TryEnterFullScreenMode(); 

But, it is logical, so it will go into full screen and when running on a PC and on the phone. And to track the size of the screen on which the application is launched, as for me - it's crooked ... Maybe there is some easier way to indicate that the phones should have a full screen?

    1 answer 1

    Check the type of device on which the application is running, you can:

     var platform = Windows.System.Profile.AnalyticsInfo.VersionInfo.DeviceFamily; if (platform == "Windows.Mobile") { ... } 

    Other possible values:

    • Windows.Desktop (if UIViewSettings.GetForCurrentView().UserInteractionMode == UserInteractionMode.Mouse , then desktop, otherwise tablet)
    • Windows.Universal (this is an IoT device)
    • Windows.Team (this is surface hub)

    True, Microsoft does not recommend using this property. The official policy is that you should not want to customize the application depending on the platform.