[Win10] explore Windows 10 10586 JumpList (jump list), win1010586

Source: Internet
Author: User

[Win10] explore Windows 10 10586 JumpList (jump list), win1010586

Windows 10 10586 has been released for a long time. Most of them should have been upgraded from 10240 to this version. In 10586, Microsoft added more than 200 new APIs. For details about API changes, click the following link:

Http://martinsuchan.github.io/ApiPeek/Diffs/win10.10240.to.win10.10586.fulldiff.html

There are many HoloLens APIs that many people are interested in. But now there are only a few people connected to the engineering machine (and I can't afford it), I 'd like to see what practical APIs are available → _ →. After a rough look, JumpList (I call it a jump list) is quite useful.

 

Open Visual Studio 2015 Update 1, create a blank UWP project, and right-click the project → properties.

I strongly recommend a Code Analyzer first !!!

Https://www.nuget.org/packages/PlatformSpecific.Analyzer/

The Code Analyzer is a new feature of VS 2015, which is based on roslyn. This is complicated and I will not be able to work here. Just install it like a normal nuget package.

After the installation is complete:

However, you must note that onlyMs-appx :///AndMs-appdata: // local/These two protocols are not supported by http: //, but we can download the image.

RemovedByUserIt's a read-only property that we can't modify, according to the description of MSDN: https://msdn.microsoft.com/zh-cn/library/windows.ui.startscreen.jumplistitem.aspx (Remarks part), right-click the Item in the Custom Group will have a delete option, this attribute is set to true by the system.

Note that,DisplayName,DescriptionAndGroupNameThese three attributes support localization.

Assume that the Resources. resw file is created in the root directory of the project and LocalName is included, you can set the attribute value to ms-resource: // Resources/LocalName.

 

The member of Item is explained here. Next, we will explain the SystemGroupKind attribute ignored by JumpList.

According to MSDN Description: https://msdn.microsoft.com/zh-cn/library/windows.ui.startscreen.jumplist.aspx (Example section)

If the APP is associated with the file protocol, the APP will automatically generate a JumpList.

The SystemGroupKind enumeration attribute defines this behavior. None indicates that the system is not automatically generated, Frequent indicates the most commonly used file, and Recent indicates the most recently used file. The default value is Recent.

However, it should be noted that this is a system action. automatically generated items are not included in JumpList items. If you do not need them, set them to None.

 

This article ends, if you need Demo, you can go to the Microsoft official Demo: https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/JumpList

JumpList can be used in a file processing APP (such as a cloud notepad) or a secondary tile (of course, JumpList can only be used on Desktop ). I hope you can use JumpList to write excellent apps.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.