XamlBindingHelper.SetPropertyFromObject 方法

定义

Object 值设置 DependencyProperty

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

适用于