Share via


XamlControlsResources.Version 屬性

定義

取得或設定要套用至 XAML 控制項的樣式版本。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

public:
 property StylesVersion Version { StylesVersion get(); void set(StylesVersion value); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::StylesVersion::Latest")]
/// [Windows.Foundation.Metadata.Experimental]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::StylesVersion::Latest")]
/// [get: Windows.Foundation.Metadata.Experimental]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::StylesVersion::Latest")]
/// [set: Windows.Foundation.Metadata.Experimental]
StylesVersion Version();

void Version(StylesVersion value);
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::StylesVersion::Latest")]
[Windows.Foundation.Metadata.Experimental]
public StylesVersion Version { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::StylesVersion::Latest")] [Windows.Foundation.Metadata.Experimental] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::StylesVersion::Latest")] [Windows.Foundation.Metadata.Experimental] set; }
Public Property Version As StylesVersion

屬性值

要套用至 XAML 控制項的樣式版本。

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute ExperimentalAttribute

適用於