Share via


XamlControlsResources.ControlsResourcesVersion 屬性

定義

取得或設定要使用的 WinUI 控制項樣式版本。

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

public:
 property ControlsResourcesVersion ControlsResourcesVersion { ControlsResourcesVersion get(); void set(ControlsResourcesVersion value); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ControlsResourcesVersion::Version2")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ControlsResourcesVersion::Version2")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ControlsResourcesVersion::Version2")]
ControlsResourcesVersion ControlsResourcesVersion();

void ControlsResourcesVersion(ControlsResourcesVersion value);
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ControlsResourcesVersion::Version2")]
public ControlsResourcesVersion ControlsResourcesVersion { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ControlsResourcesVersion::Version2")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ControlsResourcesVersion::Version2")] set; }
Public Property ControlsResourcesVersion As ControlsResourcesVersion

屬性值

要使用的 WinUI 控制項樣式版本。

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

適用於