DataTemplate Constructors
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.
Overloads
DataTemplate() |
For internal use only. |
DataTemplate(Func<Object>) |
Creates and initializes a new instance of the DataTemplate class. |
DataTemplate(Type) |
Creates a new DataTemplate for type |
DataTemplate()
For internal use only.
public DataTemplate ();
Applies to
DataTemplate(Func<Object>)
Creates and initializes a new instance of the DataTemplate class.
public DataTemplate (Func<object> loadTemplate);
new Xamarin.Forms.DataTemplate : Func<obj> -> Xamarin.Forms.DataTemplate
Parameters
- loadTemplate
- System.Func<System.Object>
A custom content generator to be called
Applies to
DataTemplate(Type)
Creates a new DataTemplate for type type
.
public DataTemplate (Type type);
new Xamarin.Forms.DataTemplate : Type -> Xamarin.Forms.DataTemplate
Parameters
- type
- System.Type
The type of control for which to create a template.