h
="1.0"="utf-8"
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MobilePrice.MainPage">
<VerticalStackLayout
Spacing="25"
Padding="30,0"
VerticalOptions="Center">
<Button Text="hello sir how are you"
SemanticProperties.Description="hello sir how are you"
HorizontalOptions="Center"
Clicked="OnButton_Clicked" />
<ListView ItemsSource="{Binding Names}" HorizontalOptions="Center">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid Padding="10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Image Source="{Binding ImageUrl}"
SemanticProperties.Description="{Binding ImageUrl}"
Grid.Column="0"/>
<Label Text="{Binding FirstName}"
SemanticProperties.Description="{Binding FirstName}"
Grid.Column="0"/>
<Label Text="{Binding LastName}"
SemanticProperties.Description="{Binding LastName}"
Grid.Column="1"
Padding="10,0"/>
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</VerticalStackLayout>
</ContentPage>