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 编译器生成的代码。

适用于