Hello,
Welcome to our Microsoft Q&A platform!
You can display the binding property name, but you cannot display the value of the Contatti properties, am I right?
If so, please add the <ListView.ItemTemplate>
, then create a custom viewCell to add the binding property like following xml layout. Properties of cells (and children of cells) can be bound to properties of objects in the ItemsSource
<xct:Expander Tapped="OnExpanderTapped"
IsExpanded="True">
<xct:Expander.Header>
<Label Text="Contatti utente"
BackgroundColor="LightBlue"
FontAttributes="Bold"
FontSize="Medium"
Padding="18" />
</xct:Expander.Header>
<Frame BorderColor="{StaticResource Primary}"
CornerRadius="1"
HasShadow="True"
IsClippedToBounds="True">
<ListView ItemsSource="{Binding Contatti}">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout>
<Label Text="{Binding Indirizzo}"/>
<Label Text="{Binding Telefono}"/>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Frame>
</xct:Expander>
If you do not famililar with Listview's binding cells, please refer to this Listview‘s Binding Cells article.
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.