XamlDirect XamlDirect XamlDirect XamlDirect Class

Definition

Represents the base class for all XamlDirect APIs. All of the XamlDirect APIs are instance methods off of this class.

XamlDirect is an API for accessing Xaml at a more primitive level for better CPU and working set performance.

public : sealed class XamlDirect
struct winrt::Windows::UI::Xaml::Core::Direct::XamlDirect
public sealed class XamlDirect
Public NotInheritable Class XamlDirect
Attributes

Windows 10 requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.UI.Xaml.Core.Direct.XamlDirectContract (introduced v1)

Methods

AddEventHandler(IXamlDirectObject, XamlEventIndex, Object) AddEventHandler(IXamlDirectObject, XamlEventIndex, Object) AddEventHandler(IXamlDirectObject, XamlEventIndex, Object) AddEventHandler(IXamlDirectObject, XamlEventIndex, Object)

Adds the specified event handler for a specified event using XamlEventIndex, adding the handler to the handler collection on the current IXamlDirectObject.

AddEventHandler(IXamlDirectObject, XamlEventIndex, Object, Boolean) AddEventHandler(IXamlDirectObject, XamlEventIndex, Object, Boolean) AddEventHandler(IXamlDirectObject, XamlEventIndex, Object, Boolean) AddEventHandler(IXamlDirectObject, XamlEventIndex, Object, Boolean)

Adds the specified event handler for a specified event using XamlEventIndex, adding the handler to the handler collection on the current IXamlDirectObject. Specify handledEventsToo as true to have the provided handler be invoked even if the event is handled elsewhere.

AddToCollection(IXamlDirectObject, IXamlDirectObject) AddToCollection(IXamlDirectObject, IXamlDirectObject) AddToCollection(IXamlDirectObject, IXamlDirectObject) AddToCollection(IXamlDirectObject, IXamlDirectObject)

Adds a value to the specified IXamlDirectObject collection.

ClearCollection(IXamlDirectObject) ClearCollection(IXamlDirectObject) ClearCollection(IXamlDirectObject) ClearCollection(IXamlDirectObject)

Removes all items from the specified IXamlDirectObject collection.

ClearProperty(IXamlDirectObject, XamlPropertyIndex) ClearProperty(IXamlDirectObject, XamlPropertyIndex) ClearProperty(IXamlDirectObject, XamlPropertyIndex) ClearProperty(IXamlDirectObject, XamlPropertyIndex)

Clears the value of the specified property on a given IXamlDirectObject.

CreateInstance(XamlTypeIndex) CreateInstance(XamlTypeIndex) CreateInstance(XamlTypeIndex) CreateInstance(XamlTypeIndex)

Creates an IXamlDirectObject instance of the type specified by the XamlTypeIndex parameter.

GetBooleanProperty(IXamlDirectObject, XamlPropertyIndex) GetBooleanProperty(IXamlDirectObject, XamlPropertyIndex) GetBooleanProperty(IXamlDirectObject, XamlPropertyIndex) GetBooleanProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of a Boolean property for a specific IXamlDirectObject.

GetCollectionCount(IXamlDirectObject) GetCollectionCount(IXamlDirectObject) GetCollectionCount(IXamlDirectObject) GetCollectionCount(IXamlDirectObject)

Returns the count of items in the specified IXamlDirectObject collection.

GetColorProperty(IXamlDirectObject, XamlPropertyIndex) GetColorProperty(IXamlDirectObject, XamlPropertyIndex) GetColorProperty(IXamlDirectObject, XamlPropertyIndex) GetColorProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of a Color property for a specific IXamlDirectObject.

GetCornerRadiusProperty(IXamlDirectObject, XamlPropertyIndex) GetCornerRadiusProperty(IXamlDirectObject, XamlPropertyIndex) GetCornerRadiusProperty(IXamlDirectObject, XamlPropertyIndex) GetCornerRadiusProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of a CornerRadius property for a specific IXamlDirectObject.

GetDateTimeProperty(IXamlDirectObject, XamlPropertyIndex) GetDateTimeProperty(IXamlDirectObject, XamlPropertyIndex) GetDateTimeProperty(IXamlDirectObject, XamlPropertyIndex) GetDateTimeProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of a DateTimeOffset property for a specific IXamlDirectObject.

GetDefault() GetDefault() GetDefault() GetDefault()

Returns the current XamlDirect instance.

GetDoubleProperty(IXamlDirectObject, XamlPropertyIndex) GetDoubleProperty(IXamlDirectObject, XamlPropertyIndex) GetDoubleProperty(IXamlDirectObject, XamlPropertyIndex) GetDoubleProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of a Double property for a specific IXamlDirectObject.

GetDurationProperty(IXamlDirectObject, XamlPropertyIndex) GetDurationProperty(IXamlDirectObject, XamlPropertyIndex) GetDurationProperty(IXamlDirectObject, XamlPropertyIndex) GetDurationProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of a Duration property for a specific IXamlDirectObject.

GetEnumProperty(IXamlDirectObject, XamlPropertyIndex) GetEnumProperty(IXamlDirectObject, XamlPropertyIndex) GetEnumProperty(IXamlDirectObject, XamlPropertyIndex) GetEnumProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of an Enum property for a specific IXamlDirectObject.

GetGridLengthProperty(IXamlDirectObject, XamlPropertyIndex) GetGridLengthProperty(IXamlDirectObject, XamlPropertyIndex) GetGridLengthProperty(IXamlDirectObject, XamlPropertyIndex) GetGridLengthProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of a GridLength property for a specific IXamlDirectObject.

GetInt32Property(IXamlDirectObject, XamlPropertyIndex) GetInt32Property(IXamlDirectObject, XamlPropertyIndex) GetInt32Property(IXamlDirectObject, XamlPropertyIndex) GetInt32Property(IXamlDirectObject, XamlPropertyIndex)

Gets the value of an Int32 property for a specific IXamlDirectObject.

GetMatrix3DProperty(IXamlDirectObject, XamlPropertyIndex) GetMatrix3DProperty(IXamlDirectObject, XamlPropertyIndex) GetMatrix3DProperty(IXamlDirectObject, XamlPropertyIndex) GetMatrix3DProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of a Matrix3D property for a specific IXamlDirectObject.

GetMatrixProperty(IXamlDirectObject, XamlPropertyIndex) GetMatrixProperty(IXamlDirectObject, XamlPropertyIndex) GetMatrixProperty(IXamlDirectObject, XamlPropertyIndex) GetMatrixProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of a Matrix property for a specific IXamlDirectObject.

GetObject(IXamlDirectObject) GetObject(IXamlDirectObject) GetObject(IXamlDirectObject) GetObject(IXamlDirectObject)

Gets (and creates if necessary) the instance as its full XAML type of the specified IXamlDirectObject.

GetObjectProperty(IXamlDirectObject, XamlPropertyIndex) GetObjectProperty(IXamlDirectObject, XamlPropertyIndex) GetObjectProperty(IXamlDirectObject, XamlPropertyIndex) GetObjectProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of an object property for a specific IXamlDirectObject.

GetPointProperty(IXamlDirectObject, XamlPropertyIndex) GetPointProperty(IXamlDirectObject, XamlPropertyIndex) GetPointProperty(IXamlDirectObject, XamlPropertyIndex) GetPointProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of a Point property for a specific IXamlDirectObject.

GetRectProperty(IXamlDirectObject, XamlPropertyIndex) GetRectProperty(IXamlDirectObject, XamlPropertyIndex) GetRectProperty(IXamlDirectObject, XamlPropertyIndex) GetRectProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of a Rect property for a specific IXamlDirectObject.

GetSizeProperty(IXamlDirectObject, XamlPropertyIndex) GetSizeProperty(IXamlDirectObject, XamlPropertyIndex) GetSizeProperty(IXamlDirectObject, XamlPropertyIndex) GetSizeProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of a Size property for a specific IXamlDirectObject.

GetStringProperty(IXamlDirectObject, XamlPropertyIndex) GetStringProperty(IXamlDirectObject, XamlPropertyIndex) GetStringProperty(IXamlDirectObject, XamlPropertyIndex) GetStringProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of a string property for a specific IXamlDirectObject.

GetThicknessProperty(IXamlDirectObject, XamlPropertyIndex) GetThicknessProperty(IXamlDirectObject, XamlPropertyIndex) GetThicknessProperty(IXamlDirectObject, XamlPropertyIndex) GetThicknessProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of a Thickness property for a specific IXamlDirectObject.

GetTimeSpanProperty(IXamlDirectObject, XamlPropertyIndex) GetTimeSpanProperty(IXamlDirectObject, XamlPropertyIndex) GetTimeSpanProperty(IXamlDirectObject, XamlPropertyIndex) GetTimeSpanProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of a TimeSpan property for a specific IXamlDirectObject.

GetXamlDirectObject(Object) GetXamlDirectObject(Object) GetXamlDirectObject(Object) GetXamlDirectObject(Object)

Gets the instance as an IXamlDirectObject for a given XAML type.

GetXamlDirectObjectFromCollectionAt(IXamlDirectObject, UInt32) GetXamlDirectObjectFromCollectionAt(IXamlDirectObject, UInt32) GetXamlDirectObjectFromCollectionAt(IXamlDirectObject, UInt32) GetXamlDirectObjectFromCollectionAt(IXamlDirectObject, UInt32)

Returns the IXamlDirectObject item at the specified index from the specified IXamlDirectObject collection.

GetXamlDirectObjectProperty(IXamlDirectObject, XamlPropertyIndex) GetXamlDirectObjectProperty(IXamlDirectObject, XamlPropertyIndex) GetXamlDirectObjectProperty(IXamlDirectObject, XamlPropertyIndex) GetXamlDirectObjectProperty(IXamlDirectObject, XamlPropertyIndex)

Gets the value of an IXamlDirectObject property for a specific IXamlDirectObject.

InsertIntoCollectionAt(IXamlDirectObject, UInt32, IXamlDirectObject) InsertIntoCollectionAt(IXamlDirectObject, UInt32, IXamlDirectObject) InsertIntoCollectionAt(IXamlDirectObject, UInt32, IXamlDirectObject) InsertIntoCollectionAt(IXamlDirectObject, UInt32, IXamlDirectObject)

Inserts a value into the specified IXamlDirectObject collection at the specified index.

RemoveEventHandler(IXamlDirectObject, XamlEventIndex, Object) RemoveEventHandler(IXamlDirectObject, XamlEventIndex, Object) RemoveEventHandler(IXamlDirectObject, XamlEventIndex, Object) RemoveEventHandler(IXamlDirectObject, XamlEventIndex, Object)

Removes the specified event handler from this IXamlDirectObject. Typically, the handler in question was added by XamlDirect.AddEventHandler.

RemoveFromCollection(IXamlDirectObject, IXamlDirectObject) RemoveFromCollection(IXamlDirectObject, IXamlDirectObject) RemoveFromCollection(IXamlDirectObject, IXamlDirectObject) RemoveFromCollection(IXamlDirectObject, IXamlDirectObject)

Tries to remove a value from the specified IXamlDirectObject collection.

RemoveFromCollectionAt(IXamlDirectObject, UInt32) RemoveFromCollectionAt(IXamlDirectObject, UInt32) RemoveFromCollectionAt(IXamlDirectObject, UInt32) RemoveFromCollectionAt(IXamlDirectObject, UInt32)

Tries to remove a value from the IXamlDirectObject collection at the specified index.

SetBooleanProperty(IXamlDirectObject, XamlPropertyIndex, Boolean) SetBooleanProperty(IXamlDirectObject, XamlPropertyIndex, Boolean) SetBooleanProperty(IXamlDirectObject, XamlPropertyIndex, Boolean) SetBooleanProperty(IXamlDirectObject, XamlPropertyIndex, Boolean)

Sets the value of a Boolean property for a specific IXamlDirectObject.

SetColorProperty(IXamlDirectObject, XamlPropertyIndex, Color) SetColorProperty(IXamlDirectObject, XamlPropertyIndex, Color) SetColorProperty(IXamlDirectObject, XamlPropertyIndex, Color) SetColorProperty(IXamlDirectObject, XamlPropertyIndex, Color)

Sets the value of a Color property for a specific IXamlDirectObject.

SetCornerRadiusProperty(IXamlDirectObject, XamlPropertyIndex, CornerRadius) SetCornerRadiusProperty(IXamlDirectObject, XamlPropertyIndex, CornerRadius) SetCornerRadiusProperty(IXamlDirectObject, XamlPropertyIndex, CornerRadius) SetCornerRadiusProperty(IXamlDirectObject, XamlPropertyIndex, CornerRadius)

Sets the value of a CornerRadius property for a specific IXamlDirectObject.

SetDateTimeProperty(IXamlDirectObject, XamlPropertyIndex, DateTime) SetDateTimeProperty(IXamlDirectObject, XamlPropertyIndex, DateTime) SetDateTimeProperty(IXamlDirectObject, XamlPropertyIndex, DateTime) SetDateTimeProperty(IXamlDirectObject, XamlPropertyIndex, DateTime)

Sets the value of a DateTimeOffset property for a specific IXamlDirectObject.

SetDoubleProperty(IXamlDirectObject, XamlPropertyIndex, Double) SetDoubleProperty(IXamlDirectObject, XamlPropertyIndex, Double) SetDoubleProperty(IXamlDirectObject, XamlPropertyIndex, Double) SetDoubleProperty(IXamlDirectObject, XamlPropertyIndex, Double)

Sets the value of a Double property for a specific IXamlDirectObject.

SetDurationProperty(IXamlDirectObject, XamlPropertyIndex, Duration) SetDurationProperty(IXamlDirectObject, XamlPropertyIndex, Duration) SetDurationProperty(IXamlDirectObject, XamlPropertyIndex, Duration) SetDurationProperty(IXamlDirectObject, XamlPropertyIndex, Duration)

Sets the value of a Duration property for a specific IXamlDirectObject.

SetEnumProperty(IXamlDirectObject, XamlPropertyIndex, UInt32) SetEnumProperty(IXamlDirectObject, XamlPropertyIndex, UInt32) SetEnumProperty(IXamlDirectObject, XamlPropertyIndex, UInt32) SetEnumProperty(IXamlDirectObject, XamlPropertyIndex, UInt32)

Sets the value of an Enum property for a specific IXamlDirectObject.

SetGridLengthProperty(IXamlDirectObject, XamlPropertyIndex, GridLength) SetGridLengthProperty(IXamlDirectObject, XamlPropertyIndex, GridLength) SetGridLengthProperty(IXamlDirectObject, XamlPropertyIndex, GridLength) SetGridLengthProperty(IXamlDirectObject, XamlPropertyIndex, GridLength)

Sets the value of a GridLength property for a specific IXamlDirectObject.

SetInt32Property(IXamlDirectObject, XamlPropertyIndex, Int32) SetInt32Property(IXamlDirectObject, XamlPropertyIndex, Int32) SetInt32Property(IXamlDirectObject, XamlPropertyIndex, Int32) SetInt32Property(IXamlDirectObject, XamlPropertyIndex, Int32)

Sets the value of an Int32 property for a specific IXamlDirectObject.

SetMatrix3DProperty(IXamlDirectObject, XamlPropertyIndex, Matrix3D) SetMatrix3DProperty(IXamlDirectObject, XamlPropertyIndex, Matrix3D) SetMatrix3DProperty(IXamlDirectObject, XamlPropertyIndex, Matrix3D) SetMatrix3DProperty(IXamlDirectObject, XamlPropertyIndex, Matrix3D)

Sets the value of a Matrix3D property for a specific IXamlDirectObject.

SetMatrixProperty(IXamlDirectObject, XamlPropertyIndex, Matrix) SetMatrixProperty(IXamlDirectObject, XamlPropertyIndex, Matrix) SetMatrixProperty(IXamlDirectObject, XamlPropertyIndex, Matrix) SetMatrixProperty(IXamlDirectObject, XamlPropertyIndex, Matrix)

Sets the value of a Matrix property for a specific IXamlDirectObject.

SetObjectProperty(IXamlDirectObject, XamlPropertyIndex, Object) SetObjectProperty(IXamlDirectObject, XamlPropertyIndex, Object) SetObjectProperty(IXamlDirectObject, XamlPropertyIndex, Object) SetObjectProperty(IXamlDirectObject, XamlPropertyIndex, Object)

Sets the value of an object property for a specific IXamlDirectObject.

SetPointProperty(IXamlDirectObject, XamlPropertyIndex, Point) SetPointProperty(IXamlDirectObject, XamlPropertyIndex, Point) SetPointProperty(IXamlDirectObject, XamlPropertyIndex, Point) SetPointProperty(IXamlDirectObject, XamlPropertyIndex, Point)

Sets the value of a Point property for a specific IXamlDirectObject.

SetRectProperty(IXamlDirectObject, XamlPropertyIndex, Rect) SetRectProperty(IXamlDirectObject, XamlPropertyIndex, Rect) SetRectProperty(IXamlDirectObject, XamlPropertyIndex, Rect) SetRectProperty(IXamlDirectObject, XamlPropertyIndex, Rect)

Sets the value of a Rect property for a specific IXamlDirectObject.

SetSizeProperty(IXamlDirectObject, XamlPropertyIndex, Size) SetSizeProperty(IXamlDirectObject, XamlPropertyIndex, Size) SetSizeProperty(IXamlDirectObject, XamlPropertyIndex, Size) SetSizeProperty(IXamlDirectObject, XamlPropertyIndex, Size)

Sets the value of a Size property for a specific IXamlDirectObject.

SetStringProperty(IXamlDirectObject, XamlPropertyIndex, String) SetStringProperty(IXamlDirectObject, XamlPropertyIndex, String) SetStringProperty(IXamlDirectObject, XamlPropertyIndex, String) SetStringProperty(IXamlDirectObject, XamlPropertyIndex, String)

Sets the value of a string property for a specific IXamlDirectObject.

SetThicknessProperty(IXamlDirectObject, XamlPropertyIndex, Thickness) SetThicknessProperty(IXamlDirectObject, XamlPropertyIndex, Thickness) SetThicknessProperty(IXamlDirectObject, XamlPropertyIndex, Thickness) SetThicknessProperty(IXamlDirectObject, XamlPropertyIndex, Thickness)

Sets the value of a Thickness property for a specific IXamlDirectObject.

SetTimeSpanProperty(IXamlDirectObject, XamlPropertyIndex, TimeSpan) SetTimeSpanProperty(IXamlDirectObject, XamlPropertyIndex, TimeSpan) SetTimeSpanProperty(IXamlDirectObject, XamlPropertyIndex, TimeSpan) SetTimeSpanProperty(IXamlDirectObject, XamlPropertyIndex, TimeSpan)

Sets the value of a TimeSpan property for a specific IXamlDirectObject.

SetXamlDirectObjectProperty(IXamlDirectObject, XamlPropertyIndex, IXamlDirectObject) SetXamlDirectObjectProperty(IXamlDirectObject, XamlPropertyIndex, IXamlDirectObject) SetXamlDirectObjectProperty(IXamlDirectObject, XamlPropertyIndex, IXamlDirectObject) SetXamlDirectObjectProperty(IXamlDirectObject, XamlPropertyIndex, IXamlDirectObject)

Sets the value of an IXamlDirectObject property for a specific IXamlDirectObject.

See also

  • M:Windows.UI.Xaml.Core.Direct.XamlDirect.GetDefault * M:Windows.UI.Xaml.Core.Direct.XamlDirect.CreateInstance(Windows.UI.Xaml.Core.Direct.XamlTypeIndex)