Export (0) Print
Expand All

JumpList.JumpItemsRemovedByUser Event

Occurs when jump items previously in the Jump List are removed from the list by the user.

Namespace:  System.Windows.Shell
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: Not mapped to an xmlns.

'Declaration
Public Event JumpItemsRemovedByUser As EventHandler(Of JumpItemsRemovedEventArgs)
<object JumpItemsRemovedByUser="EventHandler<JumpItemsRemovedEventArgs>" .../>

After the contents of the JumpList are applied to the Windows shell, the JumpItems property is modified to contain only those items that the Windows shell successfully added to its Jump List. You can access the lists of removed items through event handlers for the JumpItemsRejected and JumpItemsRemovedByUser events.

The following example shows how to handle the JumpItemsRemovedByUser event to display the rejected items in a message box. This example is part of a larger example available in the JumpList class overview.


private void JumpList_JumpItemsRemovedByUser(object sender, System.Windows.Shell.JumpItemsRemovedEventArgs e)
{
    StringBuilder sb = new StringBuilder();
    sb.AppendFormat("{0} Jump Items Removed by the user:\n", e.RemovedItems.Count);
    for (int i = 0; i < e.RemovedItems.Count; ++i)
    {
        sb.AppendFormat("{0}\n", e.RemovedItems[i]);
    }

    MessageBox.Show(sb.ToString());
}


.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2015 Microsoft