How do I create a simple data template for a ListView in .NET MAUI?

Platform: .NET MAUI| Category: Templates

How do I create a simple data template for a ListView in .NET MAUI?
You can create a simple data template for a ListView like this:
XAML

<ListView>
        <ListView.ItemTemplate>
            <DataTemplate>
                <TextCell Text="{Binding ItemName}" 
                          Detail="{Binding Description}" />
            </DataTemplate>
        </ListView.ItemTemplate>
</ListView>

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.