Share via


XamlBindingHelper.ConvertValue(TypeName, Object) Method

Definition

Converts a value from a source type to a target type.

public:
 static Platform::Object ^ ConvertValue(TypeName type, Platform::Object ^ value);
 static IInspectable ConvertValue(TypeName const& type, IInspectable const& value);
public static object ConvertValue(System.Type type, object value);
function convertValue(type, value)
Public Shared Function ConvertValue (type As Type, value As Object) As Object

Parameters

type
TypeName Type

The type to convert the value from.

value
Object

Platform::Object

IInspectable

The value to convert.

Returns

Object

Platform::Object

IInspectable

The converted value.

Remarks

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

Applies to