了解什么时候Windows10是平板模式——Windows10/Windows10Mobile.有谁知道如何检查Windows10是否在平板电脑模式下运行?我在这里发现了这个问题,但对于Windows窗体:HowdoIdetectwhenWindow10enterstabletmodeinaWindowsFormsapplication?感谢您的查询UserInteractionMode-这里是链接的示例代码以上是C#学习教程:了解Windows10何时是平板电脑模式-Windows10/Windows10Mobile都是共享的,如果对大家有用需要了解more关于C#学习教程,希望大家多多关注—switch(UIViewSettings.GetForCurrentView().UserInteractionMode){caseUserInteractionMode.Mouse:VisualStateManager.GoToState(this,"MouseLayout",true);休息;案例UserInteractionMode.Touch:默认:VisualStateManager。GoToState(this,"TouchLayout",true);休息;}本文收集自网络,不代表立场。如涉及侵权,请点击右侧联系管理员删除。如需转载请注明出处:
