<ListView x:Name="ExpenseList" HasUnevenRows="True">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<ContentView>
<StackLayout VerticalOptions="StartAndExpand">
<StackLayout Orientation="Horizontal">
<Label>Amount</Label>
<Label Text="{Binding Amount}" HorizontalOptions="FillAndExpand" />
</StackLayout>
<StackLayout Orientation="Horizontal">
<Label>Description</Label>
<Label Text="{Binding Description}" />
</StackLayout>
<StackLayout Orientation="Horizontal">
<Label>Transaction type</Label>
<Label Text="{Binding TypeOfExpense}" />
</StackLayout>
<StackLayout Orientation="Horizontal">
<Label>Date</Label>
<Label Text="{Binding Date}" HorizontalOptions="FillAndExpand"/>
</StackLayout>
</StackLayout>
</ContentView>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
Brak komentarzy:
Prześlij komentarz