แก้ไข

แชร์ผ่าน


MenuBase.ItemContainerTemplateSelector Property

Definition

Gets or sets the custom logic for choosing a template used to display each item.

public:
 property System::Windows::Controls::ItemContainerTemplateSelector ^ ItemContainerTemplateSelector { System::Windows::Controls::ItemContainerTemplateSelector ^ get(); void set(System::Windows::Controls::ItemContainerTemplateSelector ^ value); };
public System.Windows.Controls.ItemContainerTemplateSelector ItemContainerTemplateSelector { get; set; }
member this.ItemContainerTemplateSelector : System.Windows.Controls.ItemContainerTemplateSelector with get, set
Public Property ItemContainerTemplateSelector As ItemContainerTemplateSelector

Property Value

A custom object that provides logic and returns an item container.

Remarks

Use an ItemContainerTemplateSelector to choose different item containers if the items in your collection are the same type and you need to provide custom logic to choose the item container.

Dependency Property Information

Identifier field ItemContainerTemplateSelectorProperty
Metadata properties set to true None

Applies to