共用方式為


BindingOperations 類別

定義

提供靜態 SetBinding 方法。

public ref class BindingOperations sealed
/// [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 BindingOperations final
[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 sealed class BindingOperations
Public NotInheritable Class BindingOperations
繼承
Object Platform::Object IInspectable BindingOperations
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

方法

SetBinding(DependencyObject, DependencyProperty, BindingBase)

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

適用於

另請參閱