Dela via


XamlBindingHelper.SetPropertyFromString Method

Definition

Sets a DependencyProperty from a String value.

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)

Parameters

dependencyObject
Object

Platform::Object

IInspectable

The object to which the property being set belongs.

propertyToSet
DependencyProperty

The property to which the value is written.

value
String

Platform::String

winrt::hstring

The value to set.

Remarks

This method is for use in code that is generated by the XAML compiler.

Applies to