XamlReader.LoadWithInitialTemplateValidation(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 Platform::Object ^ LoadWithInitialTemplateValidation(Platform::String ^ xaml);
static IInspectable LoadWithInitialTemplateValidation(winrt::hstring const& xaml);
public static object LoadWithInitialTemplateValidation(string xaml);
function loadWithInitialTemplateValidation(xaml)
Public Shared Function LoadWithInitialTemplateValidation (xaml As String) As Object
Parameters
- xaml
-
String
Platform::String
winrt::hstring
A string that contains a valid XAML fragment.
Returns
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.