Parse Method (String)
Collapse the table of content
Expand the table of content

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 Shared Function Parse (
	xamlText As String
) As Object


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
© 2015 Microsoft