Lezen in het Engels

Share via


XamlReader.LoadWithInitialTemplateValidation(String) Method

Definition

Parses a well-formed XAML fragment creates a corresponding object tree, and returns the root of the object tree. Also performs load-time validation of any linked templates.

public static object LoadWithInitialTemplateValidation(string xaml);

Parameters

xaml
String

A string that contains a valid XAML fragment.

Returns

Object

The root object of the created object tree.

Remarks

Usage for LoadWithInitialTemplateValidation is generally the same as for XamlReader.Load. For more info, see "Remarks" section of XamlReader.Load. Most apps won't need the template validation feature; that aspect is more intended for design tools that are actively changing and reloading XAML, and perhaps enabling real-time XAML template editing.

Applies to

Product Versies
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

See also