XamlReader.LoadWithInitialTemplateValidation(String) Method
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
- xaml
-
String
Platform::String
winrt::hstring
A string that contains a valid XAML fragment.
The root object of the created object tree.
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.
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 |