简体   繁体   English

无法将Windows 10桌面上的辅助图块固定

[英]Not able to pin secondary tiles on windows 10 desktop

I'm trying to execute the notification sample from here . 我正在尝试从此处执行通知示例。 I'm able to create secondary tiles in the windows 10 mobile but when I try executing the same program it gives me an System Exception:(The local device name is already in use.(HRESULT :0x80070055) at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task). 我可以在Windows 10移动版中创建辅助图块,但是当我尝试执行相同的程序时,它给了我一个系统异常:(本地设备名称已在使用中。(HRESULT:0x80070055)位于System.Runtime.CompilerServices。 TaskAwaiter.ThrowForNonSuccess(任务任务)。

This is happening soon after I execute the code 执行代码后不久就会发生这种情况

await tile.RequestCreateAsync();

Where tile is a SecondaryTile Please note I am able to send updates/Notifications to the Primary tile without any problem. 如果图块是SecondaryTile请注意,我能够毫无问题地将更新/通知发送到主图块。

Edit: I've tried pinning secondary tiles from other apps like OneNote all of them crash. 编辑:我已经尝试从其他应用程序(如OneNote)中固定辅助图块,它们全部崩溃。 So I guess its a problem with the OS. 所以我想这是操作系统的问题。 I'm on 10586.36 build. 我正在构建10586.36。

Check out the MSDN sample Secondary tiles sample . 签出MSDN示例辅助磁贴示例 (You might need to update the references to get the sample to compile/work) (您可能需要更新引用以使示例得以编译/工作)

It's scenario 6 you are looking for.. 您正在寻找的是场景6。

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

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