英語で読む 編集

次の方法で共有


XamlLanguage.Shared Property

Definition

Gets a XamlDirective for the Shared directive for XAML.

public static System.Xaml.XamlDirective Shared { get; }

Property Value

A XamlDirective for the Shared directive for XAML.

Remarks

A Shared directive (when it is set to true) specifies that when an item is found in a dictionary, references to the object should always return the singleton instead of a new instance. This behavior is related to the concept that a dictionary might be used as a source for a shared content or template mechanism by particular frameworks that use XAML. Shared is not specified in [MS-XAML] but is part of the x namespace-defined behavior for XAML in WPF and .NET Framework version 3.0 and version 3.5.

Applies to

製品 バージョン
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10