XamlServices.Load Method (XamlReader)

.NET Framework (current version)

Loads a specific XAML reader implementation and returns an object graph.

Namespace:   System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

public static object Load(
	XamlReader xamlReader


Type: System.Xaml.XamlReader

The XAML reader implementation to use as the reader for this Load operation.

Return Value

Type: System.Object

The object graph that is returned.

Exception Condition

xamlReader input is null.

You should typically use this signature only in the following cases:

  • You defined your own implementation of a XamlReader.

  • You specified settings for a XamlReader that differ from the default settings.

.NET Framework
Available since 4.0
Return to top