IXamlDirectObject Interface

Definition

Represents the primary object type that participates in the XamlDirect set of APIs.

public interface class IXamlDirectObject
/// [Windows.Foundation.Metadata.ContractVersion(Windows.UI.Xaml.Core.Direct.XamlDirectContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(274811522, 52964, 17989, 186, 37, 208, 113, 206, 119, 131, 85)]
struct IXamlDirectObject
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.UI.Xaml.Core.Direct.XamlDirectContract), 65536)]
[Windows.Foundation.Metadata.Guid(274811522, 52964, 17989, 186, 37, 208, 113, 206, 119, 131, 85)]
public interface IXamlDirectObject
Public Interface IXamlDirectObject
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.UI.Xaml.Core.Direct.XamlDirectContract (introduced in v1.0)

Examples

The following example shows how to create an instance of an internal Xaml object of type Border.

IXamlDirectObject border = XamlDirect.CreateInstance(XamlTypeIndex.Border);

Remarks

The XamlDirect APIs allows middleware authors to access most of Xaml at a more primitive level, achieving better CPU and working set performance.
IXamlDirectObject is the minimal handle to Xaml's internal object instances. It is used only by XamlDirect APIs.

Applies to

See also