XamlReader.Load Method (Stream, ParserContext)


Reads the XAML input in the specified Stream and returns an object that is the root of the corresponding object tree.

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

public static object Load(
	Stream stream,
	ParserContext parserContext


Type: System.IO.Stream

The stream that contains the XAML input to load.

Type: System.Windows.Markup.ParserContext

Context information used by the parser.

Return Value

Type: System.Object

The object that is the root of the created object tree.

Exception Condition

stream is null.


parserContext is null.

.NET Framework
Available since 3.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft