Windows.UI.Shell.Tasks Namespace

Provides APIs that allow apps to represent long-running tasks in the Windows Shell, such as the taskbar. Apps can create, update, and remove task representations that users can monitor and interact with.

Classes

Name Description
AppTaskContent

Represents the content displayed for an app task in the Windows Shell UI. Use this class to create different visual representations of task progress and results.

AppTaskInfo

Represents an app task that can be displayed in the Windows Shell.

AppTaskResultAsset

Represents an asset produced by a completed task, such as a file or other generated content.

Enums

Name Description
AppTaskState

Defines constants that specify the state of the app task.

Remarks

Using shell tasks APIs

Apps that use these APIs need to be packaged. See Packaging overview for more info.

You also need to add the com.microsoft.apptaskprovider AppExtension to your app manifest like this:

<Package
  xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
  xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
  xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
  xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3"
  IgnorableNamespaces="rescap uap uap3">
...

<Application>
  ...
  <Extensions>
    <uap3:Extension Category="windows.appExtension">
        <uap3:AppExtension
            Name="com.microsoft.apptaskprovider"
            PublicFolder="Public"
            Id="MyApp.AppTaskProvider"
            DisplayName="AppTaskProvider for MyApp"/>
    </uap3:Extension>
  </Extensions>
  ...
</Application>

...
</Package>