|
62 | 62 | <!-- Selection dialog --> |
63 | 63 | <ContentView x:Name="SelectionDialog" IsVisible="false" AbsoluteLayout.LayoutBounds="0, 0, 1, 1" AbsoluteLayout.LayoutFlags="All"> |
64 | 64 | <Border Style="{StaticResource DialogBorderStyle}" VerticalOptions="Start" Margin="0,50,0,50"> |
65 | | - <Grid RowDefinitions="Auto, Auto, *, Auto, Auto"> |
66 | | - <Label Grid.Row="0" x:Name="SelectionDialogTitle" HorizontalOptions="Center" FontAttributes="Bold" FontSize="Large"/> |
67 | | - <BoxView Grid.Row="1" Style="{StaticResource DividerBoxViewStyle}" Margin="0,8,0,8"/> |
68 | | - <CollectionView Grid.Row="2" x:Name="SelectionDialogItems" SelectionMode="Single" VerticalOptions="FillAndExpand"> |
| 65 | + <VerticalStackLayout> |
| 66 | + <Label x:Name="SelectionDialogTitle" HorizontalOptions="Center" FontAttributes="Bold" FontSize="Large"/> |
| 67 | + <BoxView Style="{StaticResource DividerBoxViewStyle}" Margin="0,8,0,8"/> |
| 68 | + <CollectionView x:Name="SelectionDialogItems" SelectionMode="Single" VerticalOptions="FillAndExpand" |
| 69 | + ItemSizingStrategy="MeasureFirstItem" |
| 70 | + MinimumHeightRequest="40" |
| 71 | + MaximumHeightRequest="200"> |
69 | 72 | <CollectionView.ItemTemplate> |
70 | 73 | <DataTemplate> |
71 | 74 | <Label Text="{Binding}" FontSize="{OnIdiom Large, Desktop=Medium}" FontAttributes="Bold" Margin="0,4"/> |
72 | 75 | </DataTemplate> |
73 | 76 | </CollectionView.ItemTemplate> |
74 | 77 | </CollectionView> |
75 | | - <BoxView Grid.Row="3" Style="{StaticResource DividerBoxViewStyle}" Margin="0,16,0,16"/> |
76 | | - <Button Grid.Row="4" x:Name="SelectionDialogCancelButton" BackgroundColor="{DynamicResource NegativeColor}" Margin="{OnIdiom '16,0,16,0', Desktop='96,0,96,0'}"/> |
77 | | - </Grid> |
| 78 | + <BoxView Style="{StaticResource DividerBoxViewStyle}" Margin="0,16,0,16"/> |
| 79 | + <Button x:Name="SelectionDialogCancelButton" BackgroundColor="{DynamicResource NegativeColor}" Margin="{OnIdiom '16,0,16,0', Desktop='96,0,96,0'}"/> |
| 80 | + </VerticalStackLayout> |
78 | 81 | </Border> |
79 | 82 | </ContentView> |
80 | 83 |
|
|
0 commit comments