Skip to content

Commit

Permalink
Make sample a bit nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheesebaron committed May 13, 2024
1 parent e899fac commit 07ff175
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions BTProgressHUDDemo/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,17 @@
</ContentPage.BindingContext>

<Grid RowDefinitions="*,Auto">
<CollectionView ItemsSource="{Binding Items}" Grid.Row="0">
<CollectionView ItemsSource="{Binding Items}" Grid.Row="0"
ItemSizingStrategy="MeasureFirstItem">
<CollectionView.ItemTemplate>
<DataTemplate>
<VerticalStackLayout>
<VerticalStackLayout Margin="16, 2">
<Button Text="{Binding Text}"
Command="{Binding Command}" />
<BoxView HeightRequest="1"
HorizontalOptions="FillAndExpand"
Background="Black" />
Command="{Binding Command}"/>
</VerticalStackLayout>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>

<Entry Grid.Row="1"></Entry>
</Grid>
</ContentPage>

0 comments on commit 07ff175

Please sign in to comment.