简体   繁体   中英

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).

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.

Edit: I've tried pinning secondary tiles from other apps like OneNote all of them crash. So I guess its a problem with the OS. I'm on 10586.36 build.

Check out the MSDN sample Secondary tiles sample . (You might need to update the references to get the sample to compile/work)

It's scenario 6 you are looking for..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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