Xamarin.Forms.Core 2.0.0.0 Xamarin.Forms.DataTemplate Selects objects by data type and container. Application developers override the method to return a unique for a data type and parent container combination. Additionally, because the same exact template instance must be returned for a given piece of data across successive calls to , developers should create and store these in their constructor overrides. Developers should note the following items: OnSelectTemplate must not return another DataTemplateSelector, and The Android platform is limited to 20 templates per list view. The following example shows a basic use: Constructor 2.0.0.0 Creates a new with default values. Application developers should provide their own constructors to create and store the objects that can be returned by this . Method 2.0.0.0 Xamarin.Forms.DataTemplate The data for which to return a template. An optional container object in which the developer may have opted to store objects. Calls . A developer-defined that can be used to display . This method throws an exception if returns an instance of . Method 2.0.0.0 Xamarin.Forms.DataTemplate The data for which to return a template. An optional container object in which the developer may have opted to store objects. When overriden by developers in a derived class, returns a for . A developer-defined that can be used to display . Developers should ensure that this method never returns a object, as this will cause the method to throw an exception. Developers should note that the he Android platform is limited to 20 templates per list view. The following example shows a basic use: