XamlRenderingBackgroundTask class

XamlRenderingBackgroundTask class

Provides the ability to create a bitmap from a XAML tree in a background task.

Inheritance

Object
  XamlRenderingBackgroundTask

Syntax


public class XamlRenderingBackgroundTask

Members

The XamlRenderingBackgroundTask class has these types of members:

Constructors

The XamlRenderingBackgroundTask class has these constructors.

ConstructorDescription
XamlRenderingBackgroundTask Initializes a new instance of the XamlRenderingBackgroundTask class.

 

Methods

The XamlRenderingBackgroundTask class has these methods. It also inherits methods from the Object class.

MethodDescription
OnRun Performs the work of the background task. The system calls this method when the associated background task has been triggered.

 

Remarks

Important  To keep the memory footprint of the background task as low as possible, this task should be implemented in a C++ Windows Runtime Component for Windows Phone. The memory footprint will be higher if written in C# and will cause out of memory exceptions on low-memory devices which will terminate the background task. For more information on memory constraints, see Support your app with background tasks.
 

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Media.Imaging
Windows::UI::Xaml::Media::Imaging [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Media.Imaging
Windows::UI::Xaml::Media::Imaging [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version]
[WebHostHidden()]

See also

Object

 

 

Show:
© 2016 Microsoft