Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8" ?>
- <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- x:Class="XamarinFormsData.Views.ProductsPage"
- Title="Товары" >
- <ContentPage.ToolbarItems>
- <ToolbarItem Text="Меню"
- Command="{Binding OpenMenu}" />
- </ContentPage.ToolbarItems>
- <ListView ItemsSource="{Binding Products}"
- HasUnevenRows="True"
- x:Name="listview">
- <ListView.ItemTemplate>
- <DataTemplate>
- <ViewCell>
- <ViewCell.View>
- <StackLayout Orientation="Horizontal">
- <Image Source="{Binding Image}"
- HeightRequest="100"
- WidthRequest="100" />
- <StackLayout>
- <Label Text="{Binding ProductName}"
- FontSize="Medium" />
- <Label Text="{Binding Price}"
- FontSize="Small" />
- </StackLayout>
- </StackLayout>
- </ViewCell.View>
- </ViewCell>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </ContentPage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement