共用方式為


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

適用於