DataTemplateSelector.SelectTemplate(Object, BindableObject) Method
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.
Returns a DataTemplate for the specified item and container.
public:
Microsoft::Maui::Controls::DataTemplate ^ SelectTemplate(System::Object ^ item, Microsoft::Maui::Controls::BindableObject ^ container);
public Microsoft.Maui.Controls.DataTemplate SelectTemplate(object item, Microsoft.Maui.Controls.BindableObject container);
member this.SelectTemplate : obj * Microsoft.Maui.Controls.BindableObject -> Microsoft.Maui.Controls.DataTemplate
Public Function SelectTemplate (item As Object, container As BindableObject) As DataTemplate
Parameters
- item
- Object
The data object for which to select a template.
- container
- BindableObject
The bindable object that will display the templated item.
Returns
The selected DataTemplate.
Remarks
Developers should note that the Android platform is limited to 20 templates per list view.