RadioButtons.ItemTemplate 属性

定义

获取或设置用于显示每个项的 DataTemplate

本文档适用于 Windows 应用 SDKWinUI 的 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

适用于

另请参阅