Bagikan melalui


XamlReader Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Provides a XAML processor engine for parsing XAML and creating corresponding Silverlight object trees.

Inheritance Hierarchy

System.Object
  System.Windows.Markup.XamlReader

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

Syntax

'Declaration
Public NotInheritable Class XamlReader
public static class XamlReader

The XamlReader type exposes the following members.

Methods

  Name Description
Public methodStatic memberSupported by Silverlight for Windows Phone Load Parses a well-formed XAML fragment and creates a corresponding Silverlight object tree, and returns the root of the object tree.
Public methodStatic member LoadWithInitialTemplateValidation Security Critical. Cannot be called.

Top

Remarks

Usage for Load is documented thoroughly in the topic Using XamlReader.Load.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.