Redigera

Dela via


JumpList.ShowRecentCategory Property

Definition

Gets or sets a value that indicates whether recently used items are displayed in the Jump List.

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

Property Value

true if recently used items are displayed in the Jump List; otherwise, false. The default is false.

Attributes

Examples

The following example shows a JumpList configured to show the Recent category. 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">

Remarks

The contents of the Recent category are managed by the Windows shell. To display frequently used items in the Jump List, set the ShowRecentCategory 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.

You can call the AddToRecentCategory method to request that the Windows shell add items to the Recent items list. If your application is not registered to handle the file name type of the item, it will not appear in the Recent list and calls to AddToRecentCategory will fail silently.

Applies to