संपादित करें

इसके माध्यम से साझा किया गया


TemplateContentLoader.Load(XamlReader, IServiceProvider) Method

Definition

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

public:
 override System::Object ^ Load(System::Xaml::XamlReader ^ xamlReader, IServiceProvider ^ serviceProvider);
public override object Load (System.Xaml.XamlReader xamlReader, IServiceProvider serviceProvider);
override this.Load : System.Xaml.XamlReader * IServiceProvider -> obj
Public Overrides Function Load (xamlReader As XamlReader, serviceProvider As IServiceProvider) As Object

Parameters

xamlReader
XamlReader

The initiating reader that is then returned on calls to Save(Object, IServiceProvider).

serviceProvider
IServiceProvider

Service provider for required services.

Returns

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

Exceptions

xamlReader or serviceProvider is null.

serviceProvider does not provide a required service.

Remarks

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

Applies to