MenuItem.ItemContainerTemplateSelector Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.