Shell.SetItemTemplate(BindableObject, DataTemplate) 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.
Sets the DataTemplate applied to each FlyoutItem object managed by Shell.
public:
static void SetItemTemplate(Microsoft::Maui::Controls::BindableObject ^ obj, Microsoft::Maui::Controls::DataTemplate ^ itemTemplate);
public static void SetItemTemplate (Microsoft.Maui.Controls.BindableObject obj, Microsoft.Maui.Controls.DataTemplate itemTemplate);
static member SetItemTemplate : Microsoft.Maui.Controls.BindableObject * Microsoft.Maui.Controls.DataTemplate -> unit
Public Shared Sub SetItemTemplate (obj As BindableObject, itemTemplate As DataTemplate)
Parameters
- obj
- BindableObject
The object that sets the DataTemplate applied to Item objects.
- itemTemplate
- DataTemplate
The DataTemplate applied to Item objects.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.