XamlReader::Parse Method (String^)

 

Reads the XAML input in the specified text string and returns an object that corresponds to the root of the specified markup.

Namespace:   System.Windows.Markup
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
static Object^ Parse(
	String^ xamlText
)

Parameters

xamlText
Type: System::String^

The input XAML, as a single text string.

Return Value

Type: System::Object^

The root of the created object tree.

The implementation calls Load internally after creating a stream from the string. See Load for additional information such as possible exceptions.

.NET Framework
Available since 3.0
Return to top
Show: