[UWP] BrightnessOverride.SaveForSystemAsync问题 [英] [UWP]BrightnessOverride.SaveForSystemAsync issue

查看:63
本文介绍了[UWP] BrightnessOverride.SaveForSystemAsync问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在试验api  Windows.Graphics.Display  命名空间,特别是
我的UWP应用中的BrightnessOverride类。但是,当我试图保存自定义亮度级别的覆盖对象时,它会暂停我的VS Ide并导致应用程序关闭,甚至没有机会在代码中捕获异常。我正在使用  BrightnessOverride.GetForCurrentView
使用  BrightnessOverride.SaveForSystemAsync
函数在其描述中实际指示的内容不成功。我在应用清单中添加了
systemManagement 功能。请参阅下面的屏幕截图

Hi., I'm experimenting the apis in the Windows.Graphics.Display namespace, particularly BrightnessOverride class in my UWP app. But, when I'm trying to save the override object of custom brightness level it halting my VS Ide and causing the app to close, even not giving chance to catch the exception in the code. I'm getting the override object for my current app view using BrightnessOverride.GetForCurrentView. While using BrightnessOverride.SaveForSystemAsync, the function is not succeeding to what it actually indicates in its description. I did added systemManagement capability in the app manifest. See the screenshot below

推荐答案

我很遗憾地说很难找到根据描述,问题在哪里。你能否分享一下可以重现问题的代码片段?这有助于找出代码中的错误。

I'm sorry to say it is hard to find out where is the problem according to the description. Could you please share me the code snippet that could reproduce the problem? This could help to find out what's wrong in the code.

祝你好运,

Roy


这篇关于[UWP] BrightnessOverride.SaveForSystemAsync问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆