XamlDirect クラス

定義

すべての XamlDirect API の基本クラスを表します。 XamlDirect API はすべて、このクラスのインスタンス メソッドです。

XamlDirect は、CPU とワーキング セットのパフォーマンスを向上させるために、よりプリミティブ レベルで Xaml にアクセスするための API です。

UWP 用の同等の WinUI 2 API: Microsoft.UI.Xaml.Core.Direct.XamlDirect (Windows App SDKの WinUI の場合は、Windows App SDK名前空間を参照してください)。

public ref class XamlDirect sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.UI.Xaml.Core.Direct.XamlDirectContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class XamlDirect final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.UI.Xaml.Core.Direct.XamlDirectContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class XamlDirect
Public NotInheritable Class XamlDirect
継承
Object Platform::Object IInspectable XamlDirect
属性

Windows の要件

デバイス ファミリ
Windows 10, version 1809 (10.0.17763.0 で導入)
API contract
Windows.UI.Xaml.Core.Direct.XamlDirectContract (v1.0 で導入)

メソッド

AddEventHandler(IXamlDirectObject, XamlEventIndex, Object)

XamlEventIndex を使用して、指定したイベントの指定したイベント ハンドラーを追加し、現在の IXamlDirectObject のハンドラー コレクションにハンドラーを追加します。

AddEventHandler(IXamlDirectObject, XamlEventIndex, Object, Boolean)

XamlEventIndex を使用して、指定したイベントの指定したイベント ハンドラーを追加し、現在の IXamlDirectObject のハンドラー コレクションにハンドラーを追加します。 handledEventsToo を true に指定すると、イベントが他の場所で処理された場合でも、指定されたハンドラーを呼び出すことができます。

AddToCollection(IXamlDirectObject, IXamlDirectObject)

指定した IXamlDirectObject コレクションに値を追加します。

ClearCollection(IXamlDirectObject)

指定した IXamlDirectObject コレクションからすべての項目を削除します。

ClearProperty(IXamlDirectObject, XamlPropertyIndex)

指定した IXamlDirectObject の指定したプロパティの値をクリアします。

CreateInstance(XamlTypeIndex)

XamlTypeIndex パラメーターで指定された型の IXamlDirectObject インスタンスを作成します。

GetBooleanProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObjectBoolean プロパティの値を取得します。

GetCollectionCount(IXamlDirectObject)

指定した IXamlDirectObject コレクション内の項目数を返します。

GetColorProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObjectColor プロパティの値を取得します。

GetCornerRadiusProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObjectCornerRadius プロパティの値を取得します。

GetDateTimeProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObjectDateTimeOffset プロパティの値を取得します。

GetDefault()

現在の XamlDirect インスタンスを返します。

UWP 用の同等の WinUI 2 API: Microsoft.UI.Xaml.Core.Direct.XamlDirect.GetDefault (Windows App SDKの WinUI の場合は、Windows App SDK名前空間を参照してください)。

GetDoubleProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObjectDouble プロパティの値を取得します。

GetDurationProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObjectDuration プロパティの値を取得します。

GetEnumProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObjectEnum プロパティの値を取得します。

GetGridLengthProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObjectGridLength プロパティの値を取得します。

GetInt32Property(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObjectの Int32 プロパティの値を取得します。

GetMatrix3DProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObjectMatrix3D プロパティの値を取得します。

GetMatrixProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObjectMatrix プロパティの値を取得します。

GetObject(IXamlDirectObject)

指定した IXamlDirectObject の完全な XAML 型としてインスタンスを取得 (および必要に応じて作成) します。

GetObjectProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObjectオブジェクト プロパティの値を取得します。

GetPointProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObjectPoint プロパティの値を取得します。

GetRectProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObjectRect プロパティの値を取得します。

GetSizeProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObjectSize プロパティの値を取得します。

GetStringProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObject文字列プロパティの値を取得します。

GetThicknessProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObjectThickness プロパティの値を取得します。

GetTimeSpanProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObjectTimeSpan プロパティの値を取得します。

GetXamlDirectObject(Object)

特定の XAML 型の IXamlDirectObject としてインスタンスを取得します。

GetXamlDirectObjectFromCollectionAt(IXamlDirectObject, UInt32)

指定した IXamlDirectObject コレクションから、指定したインデックス位置にある IXamlDirectObject 項目を 返します。

GetXamlDirectObjectProperty(IXamlDirectObject, XamlPropertyIndex)

特定の IXamlDirectObject の IXamlDirectObject プロパティの値を取得 します

InsertIntoCollectionAt(IXamlDirectObject, UInt32, IXamlDirectObject)

指定したインデックス位置にある指定した IXamlDirectObject コレクションに値を挿入します。

RemoveEventHandler(IXamlDirectObject, XamlEventIndex, Object)

この IXamlDirectObject から指定したイベント ハンドラーを削除します。 通常、問題のハンドラーは XamlDirect.AddEventHandler によって追加されました。

RemoveFromCollection(IXamlDirectObject, IXamlDirectObject)

指定した IXamlDirectObject コレクションから値の削除を試みます。

RemoveFromCollectionAt(IXamlDirectObject, UInt32)

指定したインデックス位置にある IXamlDirectObject コレクションから値の削除を試みます。

SetBooleanProperty(IXamlDirectObject, XamlPropertyIndex, Boolean)

特定の IXamlDirectObjectBoolean プロパティの値を設定します。

SetColorProperty(IXamlDirectObject, XamlPropertyIndex, Color)

特定の IXamlDirectObjectColor プロパティの値を設定します。

SetCornerRadiusProperty(IXamlDirectObject, XamlPropertyIndex, CornerRadius)

特定の IXamlDirectObjectCornerRadius プロパティの値を設定します。

SetDateTimeProperty(IXamlDirectObject, XamlPropertyIndex, DateTime)

特定の IXamlDirectObjectDateTimeOffset プロパティの値を設定します。

SetDoubleProperty(IXamlDirectObject, XamlPropertyIndex, Double)

特定の IXamlDirectObjectDouble プロパティの値を設定します。

SetDurationProperty(IXamlDirectObject, XamlPropertyIndex, Duration)

特定の IXamlDirectObjectDuration プロパティの値を設定します。

SetEnumProperty(IXamlDirectObject, XamlPropertyIndex, UInt32)

特定の IXamlDirectObjectEnum プロパティの値を設定します。

SetGridLengthProperty(IXamlDirectObject, XamlPropertyIndex, GridLength)

特定の IXamlDirectObjectの GridLength プロパティの値を設定します。

SetInt32Property(IXamlDirectObject, XamlPropertyIndex, Int32)

特定の IXamlDirectObjectの Int32 プロパティの値を設定します。

SetMatrix3DProperty(IXamlDirectObject, XamlPropertyIndex, Matrix3D)

特定の IXamlDirectObjectMatrix3D プロパティの値を設定します。

SetMatrixProperty(IXamlDirectObject, XamlPropertyIndex, Matrix)

特定の IXamlDirectObjectMatrix プロパティの値を設定します。

SetObjectProperty(IXamlDirectObject, XamlPropertyIndex, Object)

特定の IXamlDirectObjectのオブジェクト プロパティの値を設定します。

SetPointProperty(IXamlDirectObject, XamlPropertyIndex, Point)

特定の IXamlDirectObjectPoint プロパティの値を設定します。

SetRectProperty(IXamlDirectObject, XamlPropertyIndex, Rect)

特定の IXamlDirectObjectRect プロパティの値を設定します。

SetSizeProperty(IXamlDirectObject, XamlPropertyIndex, Size)

特定の IXamlDirectObjectSize プロパティの値を設定します。

SetStringProperty(IXamlDirectObject, XamlPropertyIndex, String)

特定の IXamlDirectObject文字列プロパティの値を設定します。

SetThicknessProperty(IXamlDirectObject, XamlPropertyIndex, Thickness)

特定の IXamlDirectObjectThickness プロパティの値を設定します。

SetTimeSpanProperty(IXamlDirectObject, XamlPropertyIndex, TimeSpan)

特定の IXamlDirectObjectTimeSpan プロパティの値を設定します。

SetXamlDirectObjectProperty(IXamlDirectObject, XamlPropertyIndex, IXamlDirectObject)

特定の IXamlDirectObject の IXamlDirectObject プロパティの値 を設定します

適用対象

こちらもご覧ください