共用方式為


BindingOperations 類別

定義

提供靜態 SetBinding 方法。

public ref class BindingOperations sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BindingOperations final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BindingOperations
Public NotInheritable Class BindingOperations
繼承
Object Platform::Object IInspectable BindingOperations
屬性

方法

SetBinding(DependencyObject, DependencyProperty, BindingBase)

Binding 與目標物件上的目標屬性產生關聯。 這個方法相當於在 XAML 標記中使用 {Binding} 標記延伸 的程式碼。

適用於

另請參閱