Share via


RadioButtons.ItemTemplate 屬性

定義

取得或設定用來顯示每個專案的 DataTemplate

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

public:
 property Platform::Object ^ ItemTemplate { Platform::Object ^ get(); void set(Platform::Object ^ value); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::make<RadioButtonsElementFactory>()")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::make<RadioButtonsElementFactory>()")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::make<RadioButtonsElementFactory>()")]
IInspectable ItemTemplate();

void ItemTemplate(IInspectable value);
IInspectable ItemTemplate();

void ItemTemplate(IInspectable value);
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::make<RadioButtonsElementFactory>()")]
public object ItemTemplate { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::make<RadioButtonsElementFactory>()")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::make<RadioButtonsElementFactory>()")] set; }
public object ItemTemplate { get; set; }
Public Property ItemTemplate As Object

屬性值

Object

Platform::Object

IInspectable

指定資料物件視覺效果的範本。 預設值為 null

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

適用於

另請參閱