共用方式為


XamlBindingHelper.SetPropertyFromObject 方法

定義

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

參數

dependencyObject
Object

Platform::Object

IInspectable

要設定之屬性所屬的物件。

propertyToSet
DependencyProperty

要寫入值的屬性。

value
Object

Platform::Object

IInspectable

要設定的值。

備註

這個方法可用於 XAML 編譯器所產生的程式碼中。

適用於