Dela via


XamlRenderingBackgroundTask Class

Definition

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

public ref class XamlRenderingBackgroundTask
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class XamlRenderingBackgroundTask
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class XamlRenderingBackgroundTask
Public Class XamlRenderingBackgroundTask
Inheritance
Object Platform::Object IInspectable XamlRenderingBackgroundTask
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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.

Constructors

XamlRenderingBackgroundTask()

Initializes a new instance of the XamlRenderingBackgroundTask class.

Methods

OnRun(IBackgroundTaskInstance)

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

Applies to