另外,
如果要使得程序保持运行状态,可以设置应用程序的属性,使手机设备自动忽略用户闲置状态。
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disable
Keep Fighting
你好,
对于屏幕亮度的控制,目前的SDK也没有相关的API。
不过,我们可以通过设置 background brush 和 foreground brush 的 alpha 值来模拟屏幕亮度。
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled
很好用,就是这个,谢谢!