JumpList.ShowFrequentCategory JumpList.ShowFrequentCategory JumpList.ShowFrequentCategory JumpList.ShowFrequentCategory Property

定义

获取或设置一个值,该值指示常用项是否显示在跳转列表中。Gets or sets a value that indicates whether frequently used items are displayed in the Jump List.

public:
 property bool ShowFrequentCategory { bool get(); void set(bool value); };
[get: System.Security.SecurityCritical]
[set: System.Security.SecurityCritical]
public bool ShowFrequentCategory { get; set; }
member this.ShowFrequentCategory : bool with get, set
Public Property ShowFrequentCategory As Boolean

属性值

如果常用项显示在跳转列表中,则为 true;否则为 falsetrue if frequently used items are displayed in the Jump List; otherwise, false. 默认值为 falseThe default is false.

示例

下面的示例演示了JumpList一个配置为显示常用类别的。The following example shows a JumpList configured to show the Frequent category. 此示例是JumpList类概述中提供的一个更大示例的一部分。This example is part of a larger example available in the JumpList class overview.

<JumpList ShowRecentCategory="True"
          ShowFrequentCategory="True"
          JumpItemsRejected="JumpList_JumpItemsRejected"
          JumpItemsRemovedByUser="JumpList_JumpItemsRemovedByUser">

注解

常见类别的内容由 Windows shell 管理。The contents of the Frequent category are managed by the Windows shell. 若要在跳转列表中显示经常使用的项ShowFrequentCategory ,请true将属性设置为。To display frequently used items in the Jump List, set the ShowFrequentCategory property to true.

最近频繁的类别通常包含多个相同的跳转项。The Recent and Frequent categories often contain many of the same jump items. 因此,应用程序通常会在跳转列表中显示 "最近" 或 "常用" 类别,但不能同时显示两者。As a result, applications typically display either the Recent or the Frequent category in the Jump List, but not both.

适用于