DataTemplate Class
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.
A template for multiple bindings, commonly used by ListViews and MultiPage<T>s.
public ref class DataTemplate : Microsoft::Maui::Controls::ElementTemplate, Microsoft::Maui::Controls::Internals::IDataTemplateController
public class DataTemplate : Microsoft.Maui.Controls.ElementTemplate, Microsoft.Maui.Controls.Internals.IDataTemplateController
type DataTemplate = class
inherit ElementTemplate
interface IDataTemplateController
Public Class DataTemplate
Inherits ElementTemplate
Implements IDataTemplateController
- Inheritance
- Derived
- Implements
In XAML, application developers can nest markup inside a DataTemplate
tag to create a View whose members are bound to the properties of data objects that are contained in a ItemsSource list.
Data |
For internal use only. |
Data |
Creates and initializes a new instance of the DataTemplate class. |
Data |
Creates a new DataTemplate for type |
Bindings |
Gets a dictionary of bindings, indexed by the bound properties. |
Load |
(Inherited from ElementTemplate) |
Values |
Returns a dictionary of property values for this DataTemplate, indexed by property. |
Create |
Used by the XAML infrastructure to load data templates and set up the content of the resulting UI. (Inherited from ElementTemplate) |
Set |
Sets the binding for |
Set |
Sets the value of |
Create |
For internal use by the Microsoft.Maui.Controls platform. |
Select |
For internal use by the Microsoft.Maui.Controls platform. |
Set |
Binds the |
Product | Versions |
---|---|
.NET MAUI | 8, 9 |
.NET MAUI feedback
.NET MAUI is an open source project. Select a link to provide feedback: