閱讀英文

共用方式為


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 編譯器所產生的程式碼中。

適用於

產品 版本
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100