XamlLanguage.SynchronousMode Property
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.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈