共用方式為


XamlBindingHelper.SetPropertyFromSingle 方法

定義

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

參數

dependencyObject
Object

Platform::Object

IInspectable

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

propertyToSet
DependencyProperty

寫入值的屬性。

value
Single

float

要設定的值。

備註

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

適用於