Represents a shortcut to an application in the Windows 7 taskbar Jump List.
Assembly: PresentationFramework (in PresentationFramework.dll)
Gets or sets the path to the application.
Gets or sets the arguments passed to the application on startup.
Gets or sets the text displayed in the tooltip for the task in the Jump List.
Gets or sets the zero-based index of an icon embedded in a resource.
Gets or sets the path to a resource that contains the icon to display in the Jump List.
Gets or sets the text displayed for the task in the Jump List.
Gets or sets the working directory of the application on startup.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
You can set basic display properties, such as Title, Description, and IconResourcePath to specify the appearance of the task in the Jump List. An icon used with a must be available as a native resource. If multiple icon resources are available in a DLL or executable file, you specify the one to use by indicating an offset in the IconResourceIndex property.
By default, a CustomCategory property.will be placed in the Tasks category of the Jump List. You can specify custom grouping of tasks by setting the
You can visually separate items in a Jump List by creating a Title and CustomCategory specified. This empty will be displayed as a horizontal line in the Jump List. In this case, other properties can be set, but they will not have any effect.that does not have a
The following example shows how to declare a readme.txt in the Notepad application.in markup. The opens a text file named
<JumpTask Title="Read Me" Description="Open readme.txt in Notepad." ApplicationPath="C:\Windows\notepad.exe" IconResourcePath="C:\Windows\System32\imageres.dll" IconResourceIndex="14" WorkingDirectory="C:\Users\Public\Documents" Arguments="readme.txt"/>
The following example shows how to configure ain code. The opens the Calculator application.
// Configure a new JumpTask. JumpTask jumpTask1 = new JumpTask(); // Get the path to Calculator and set the JumpTask properties. jumpTask1.ApplicationPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.SystemX86), "calc.exe"); jumpTask1.IconResourcePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.SystemX86), "calc.exe"); jumpTask1.Title = "Calculator"; jumpTask1.Description = "Open Calculator."; jumpTask1.CustomCategory = "User Added Tasks";
Available since 4.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.