DataTemplateExtensions.CreateContent 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.
Selects the appropriate template and creates its content for the specified item.
public:
[System::Runtime::CompilerServices::Extension]
static System::Object ^ CreateContent(Microsoft::Maui::Controls::DataTemplate ^ self, System::Object ^ item, Microsoft::Maui::Controls::BindableObject ^ container);
public static object CreateContent(this Microsoft.Maui.Controls.DataTemplate self, object item, Microsoft.Maui.Controls.BindableObject container);
static member CreateContent : Microsoft.Maui.Controls.DataTemplate * obj * Microsoft.Maui.Controls.BindableObject -> obj
<Extension()>
Public Function CreateContent (self As DataTemplate, item As Object, container As BindableObject) As Object
Parameters
- self
- DataTemplate
The template or selector.
- item
- Object
The data item.
- container
- BindableObject
The container that will display the item.
Returns
The created content object.