This documentation is archived and is not being maintained.

XamlReader.LoadAsync Method

Reads XAML markup and returns an Object that corresponds to the root of the specified XML, asynchronously.

Name Description
XamlReader.LoadAsync (Stream) Reads the XAML markup in the specified Stream and returns the root of the corresponding object tree, asynchronously.
XamlReader.LoadAsync (XmlReader) Reads the XAML markup in the specified XmlReader and returns the root of the corresponding object tree, asynchronously.
XamlReader.LoadAsync (Stream, ParserContext) Reads the XAML markup in the specified Stream and returns the root of the corresponding object tree, asynchronously.

Only one asynchronous load operation per instance of the XamlReader class can be performed at a time. If more than one asynchronous operation is attempted on the same instance of the XamlReader class an InvalidOperationException is thrown.

Show: