XamlBindingHelper.SetPropertyFromBoolean 方法

定义

public:
 static void SetPropertyFromBoolean(Platform::Object ^ dependencyObject, DependencyProperty ^ propertyToSet, bool value);
 static void SetPropertyFromBoolean(IInspectable const& dependencyObject, DependencyProperty const& propertyToSet, bool const& value);
public static void SetPropertyFromBoolean(object dependencyObject, DependencyProperty propertyToSet, bool value);
function setPropertyFromBoolean(dependencyObject, propertyToSet, value)
Public Shared Sub SetPropertyFromBoolean (dependencyObject As Object, propertyToSet As DependencyProperty, value As Boolean)

参数

dependencyObject
Object

Platform::Object

IInspectable

要设置的属性所属的 对象。

propertyToSet
DependencyProperty

将值写入到的属性。

value
Boolean

bool

要设置的值。

注解

此方法用于 XAML 编译器生成的代码。

适用于