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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για