|
62 | 62 | <Grid.RowDefinitions> |
63 | 63 | <RowDefinition Height="Auto" /> |
64 | 64 | <RowDefinition Height="*" /> |
65 | | - <RowDefinition Height="Auto" /> |
66 | 65 | </Grid.RowDefinitions> |
67 | 66 | <!-- HEADER --> |
68 | 67 | <Grid |
|
71 | 70 | Text="SHOPPING CART" |
72 | 71 | Style="{StaticResource ShoppingCartStyle}"/> |
73 | 72 | </Grid> |
74 | | - <!-- ITEMS --> |
75 | | - <ListView |
76 | | - Grid.Row="1" |
77 | | - ItemsSource="{Binding BasketItems}" |
78 | | - behaviors:ItemTappedCommandListViewBehavior.ItemTappedCommand="{Binding AddCommand}" |
79 | | - HeightRequest="{Binding BasketItems.Count, Converter={StaticResource ItemsToHeightConverter}}" |
80 | | - HasUnevenRows="True" |
81 | | - SeparatorVisibility="None" |
82 | | - VerticalOptions="FillAndExpand" |
83 | | - CachingStrategy="RecycleElement"> |
84 | | - <ListView.ItemTemplate> |
85 | | - <DataTemplate> |
86 | | - <ViewCell> |
87 | | - <templates:BasketItemTemplate /> |
88 | | - </ViewCell> |
89 | | - </DataTemplate> |
90 | | - </ListView.ItemTemplate> |
91 | | - </ListView> |
92 | | - <!-- TOTAL --> |
93 | | - <StackLayout |
94 | | - Grid.Row="2" |
95 | | - Margin="0,0,0,24"> |
96 | | - <Label |
97 | | - Grid.Row="0" |
98 | | - Text="TOTAL" |
99 | | - TextColor="{StaticResource BlackColor}" |
100 | | - Style="{StaticResource CartTotalStyle}"/> |
101 | | - <Label |
102 | | - Grid.Row="1" |
103 | | - Text="{Binding Total, StringFormat='${0:N}'}" |
104 | | - TextColor="{StaticResource GreenColor}" |
105 | | - Style="{StaticResource CartTotalStyle}"/> |
106 | | - </StackLayout> |
| 73 | + <ScrollView |
| 74 | + Grid.Row="1"> |
| 75 | + <StackLayout> |
| 76 | + <!-- ITEMS --> |
| 77 | + <ListView |
| 78 | + ItemsSource="{Binding BasketItems}" |
| 79 | + behaviors:ItemTappedCommandListViewBehavior.ItemTappedCommand="{Binding AddCommand}" |
| 80 | + HeightRequest="{Binding BasketItems.Count, Converter={StaticResource ItemsToHeightConverter}}" |
| 81 | + HasUnevenRows="True" |
| 82 | + SeparatorVisibility="None" |
| 83 | + VerticalOptions="FillAndExpand" |
| 84 | + CachingStrategy="RecycleElement"> |
| 85 | + <ListView.ItemTemplate> |
| 86 | + <DataTemplate> |
| 87 | + <ViewCell> |
| 88 | + <templates:BasketItemTemplate /> |
| 89 | + </ViewCell> |
| 90 | + </DataTemplate> |
| 91 | + </ListView.ItemTemplate> |
| 92 | + </ListView> |
| 93 | + <!-- TOTAL --> |
| 94 | + <StackLayout |
| 95 | + Margin="0,0,0,24"> |
| 96 | + <Label |
| 97 | + Grid.Row="0" |
| 98 | + Text="TOTAL" |
| 99 | + TextColor="{StaticResource BlackColor}" |
| 100 | + Style="{StaticResource CartTotalStyle}"/> |
| 101 | + <Label |
| 102 | + Grid.Row="1" |
| 103 | + Text="{Binding Total, StringFormat='${0:N}'}" |
| 104 | + TextColor="{StaticResource GreenColor}" |
| 105 | + Style="{StaticResource CartTotalStyle}"/> |
| 106 | + </StackLayout> |
| 107 | + </StackLayout> |
| 108 | + </ScrollView> |
107 | 109 | </Grid> |
108 | 110 | </Grid> |
109 | 111 | <!-- CHECKOUT --> |
|
0 commit comments