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} 标记扩展 的代码。

适用于

另请参阅