Skip to content

Commit d8a075f

Browse files
committed
Changed Xamarin Basket scroll
1 parent 5f32ca1 commit d8a075f

1 file changed

Lines changed: 36 additions & 34 deletions

File tree

src/Mobile/eShopOnContainers/eShopOnContainers.Core/Views/BasketView.xaml

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
<Grid.RowDefinitions>
6363
<RowDefinition Height="Auto" />
6464
<RowDefinition Height="*" />
65-
<RowDefinition Height="Auto" />
6665
</Grid.RowDefinitions>
6766
<!-- HEADER -->
6867
<Grid
@@ -71,39 +70,42 @@
7170
Text="SHOPPING CART"
7271
Style="{StaticResource ShoppingCartStyle}"/>
7372
</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>
107109
</Grid>
108110
</Grid>
109111
<!-- CHECKOUT -->

0 commit comments

Comments
 (0)