Export (0) Print
Expand All

TemplateContentLoader.Load Method

Loads XAML content in a deferred mode, based on a XamlReader and certain required services from a service provider.

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

public override Object Load(
	XamlReader xamlReader,
	IServiceProvider serviceProvider
)

Parameters

xamlReader
Type: System.Xaml.XamlReader

The initiating reader that is then returned on calls to Save.

serviceProvider
Type: System.IServiceProvider

Service provider for required services.

Return Value

Type: System.Object
The root object for the node stream of the input XamlReader. Specifically, this is a TemplateContent instance.

ExceptionCondition
ArgumentNullException

xamlReader or serviceProvider are null.

InvalidOperationException

serviceProvider does not provide a required service.

IXamlObjectWriterFactory is a required service, it must be available on the passed serviceProvider.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft