Skip to content

Commit f35db92

Browse files
committed
Make sample a bit nicer
1 parent db42421 commit f35db92

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

BTProgressHUDDemo/MainPage.xaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,17 @@
1010
</ContentPage.BindingContext>
1111

1212
<Grid RowDefinitions="*,Auto">
13-
<CollectionView ItemsSource="{Binding Items}" Grid.Row="0">
13+
<CollectionView ItemsSource="{Binding Items}" Grid.Row="0"
14+
ItemSizingStrategy="MeasureFirstItem">
1415
<CollectionView.ItemTemplate>
1516
<DataTemplate>
16-
<VerticalStackLayout>
17+
<VerticalStackLayout Margin="16, 2">
1718
<Button Text="{Binding Text}"
18-
Command="{Binding Command}" />
19-
<BoxView HeightRequest="1"
20-
HorizontalOptions="FillAndExpand"
21-
Background="Black" />
19+
Command="{Binding Command}"/>
2220
</VerticalStackLayout>
2321
</DataTemplate>
2422
</CollectionView.ItemTemplate>
2523
</CollectionView>
26-
27-
<Entry Grid.Row="1"></Entry>
2824
</Grid>
2925
</ContentPage>
3026

0 commit comments

Comments
 (0)