Editar

Compartilhar via


XamlLanguage.SynchronousMode Property

Definition

Gets a XamlDirective that enables loading XAML asynchronously if the XAML processor supports such a mode.

public:
 static property System::Xaml::XamlDirective ^ SynchronousMode { System::Xaml::XamlDirective ^ get(); };
public static System.Xaml.XamlDirective SynchronousMode { get; }
static member SynchronousMode : System.Xaml.XamlDirective
Public Shared ReadOnly Property SynchronousMode As XamlDirective

Property Value

A XamlDirective that enables loading XAML asynchronously.

Remarks

A SynchronousMode directive (when set to Async) is used to specify that when a XAML file is loaded, the root node is processed first. The resulting object can be inserted even though its content is still processing. In this mode you can bypass the default XAML processing behavior of working from deepest node to the root. In the default processing logic for XAML, any caller that is waiting for the root object is blocked until the full parse is complete. SynchronousMode is not specified in [MS-XAML] but is part of the x namespace-defined behavior for XAML in WPF beginning in .NET Framework version 3.5 with SP1 (or any subsequent service pack).

Applies to