XamlBindingHelper.SetPropertyFromString 方法

定义

设置 String 值中的 DependencyProperty

public:
 static void SetPropertyFromString(Platform::Object ^ dependencyObject, DependencyProperty ^ propertyToSet, Platform::String ^ value);
 static void SetPropertyFromString(IInspectable const& dependencyObject, DependencyProperty const& propertyToSet, winrt::hstring const& value);
public static void SetPropertyFromString(object dependencyObject, DependencyProperty propertyToSet, string value);
function setPropertyFromString(dependencyObject, propertyToSet, value)
Public Shared Sub SetPropertyFromString (dependencyObject As Object, propertyToSet As DependencyProperty, value As String)

参数

dependencyObject
Object

Platform::Object

IInspectable

要设置的属性所属的 对象。

propertyToSet
DependencyProperty

将值写入到的属性。

value
String

Platform::String

winrt::hstring

要设置的值。

注解

此方法用于 XAML 编译器生成的代码。

适用于