简体   繁体   English

Windows Phone 10 Universal App中的SupressSystemOverlays

[英]SupressSystemOverlays in Windows Phone 10 Universal App

I would like to hide the soft keys and the tool tray in this Windows Phone 10 Universal App. 我想在此Windows Phone 10 Universal App中隐藏软键和工具托盘。

            var x = Windows.UI.ViewManagement.ApplicationView.GetForCurrentView();
            x.SuppressSystemOverlays = true;

I tried this, which msdn seems to suggest would do it, but the true value does not take. 我试过了,msdn似乎建议这样做,但是并没有采用真正的价值。 It remains false after the line executes. 该行执行后,它仍然为false。

How can I hide those darn overlays. 我如何隐藏这些织补层。 Thanks. 谢谢。

After throwing everything at it and trying every switch in the ApplicationView class, the only one that worked on the Windows 10 Phone Universal App was: 在将所有内容扔给它并尝试了ApplicationView类中的每个开关之后,在Windows 10 Phone Universal App上唯一起作用的是:

TryEnterFullScreenMode(); TryEnterFullScreenMode();

The other switches had no effect at all. 其他开关完全没有作用。 Hope it helps somebody! 希望对您有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM