|
24 | 24 | <ViewCell> |
25 | 25 | <Grid ColumnDefinitions="*, 400, *" HorizontalOptions="FillAndExpand"> |
26 | 26 | <HorizontalStackLayout Grid.Column="1"> |
27 | | - <Border |
28 | | - HorizontalOptions="Start" |
29 | | - StrokeThickness="2" |
30 | | - Stroke="{StaticResource Black}"> |
31 | | - <HorizontalStackLayout Margin="16,0,0,0" BindableLayout.ItemsSource="{Binding Path=GuessPegs}"> |
32 | | - <HorizontalStackLayout.Resources> |
33 | | - <Style TargetType="Ellipse"> |
34 | | - <Setter Property="WidthRequest" Value="38" /> |
35 | | - <Setter Property="HeightRequest" Value="38" /> |
36 | | - <Setter Property="Margin" Value="6, 4" /> |
37 | | - </Style> |
38 | | - </HorizontalStackLayout.Resources> |
39 | | - <BindableLayout.ItemTemplate> |
40 | | - <DataTemplate> |
41 | | - <Ellipse Fill="{Binding Converter={StaticResource ColorConverter}}" /> |
42 | | - </DataTemplate> |
43 | | - </BindableLayout.ItemTemplate> |
44 | | - </HorizontalStackLayout> |
45 | | - </Border> |
| 27 | + <HorizontalStackLayout HorizontalOptions="Start" Margin="16,0,0,0" BindableLayout.ItemsSource="{Binding Path=GuessPegs}"> |
| 28 | + <HorizontalStackLayout.Resources> |
| 29 | + <Style TargetType="Ellipse"> |
| 30 | + <Setter Property="WidthRequest" Value="38" /> |
| 31 | + <Setter Property="HeightRequest" Value="38" /> |
| 32 | + <Setter Property="Margin" Value="6, 4" /> |
| 33 | + </Style> |
| 34 | + </HorizontalStackLayout.Resources> |
| 35 | + <BindableLayout.ItemTemplate> |
| 36 | + <DataTemplate> |
| 37 | + <Ellipse Fill="{Binding Converter={StaticResource ColorConverter}}" /> |
| 38 | + </DataTemplate> |
| 39 | + </BindableLayout.ItemTemplate> |
| 40 | + </HorizontalStackLayout> |
46 | 41 |
|
47 | | - <Border |
48 | | - HorizontalOptions="Start" |
49 | | - StrokeThickness="2" |
50 | | - Stroke="{StaticResource Black}"> |
51 | | - <Grid Margin="12,0,0,0" RowDefinitions="*, *"> |
52 | | - <Grid.Resources> |
53 | | - <Style TargetType="Ellipse"> |
54 | | - <Setter Property="Stroke" Value="White" /> |
55 | | - <Setter Property="StrokeThickness" Value="2" /> |
56 | | - <Setter Property="WidthRequest" Value="16" /> |
57 | | - <Setter Property="HeightRequest" Value="16" /> |
58 | | - <Setter Property="Margin" Value="8" /> |
59 | | - </Style> |
60 | | - </Grid.Resources> |
61 | | - <HorizontalStackLayout BindableLayout.ItemsSource="{Binding Path=KeyPegs}"> |
62 | | - <BindableLayout.ItemTemplate> |
63 | | - <DataTemplate> |
64 | | - <Ellipse Fill="{Binding Converter={StaticResource PegColorConverter}}" /> |
65 | | - </DataTemplate> |
66 | | - </BindableLayout.ItemTemplate> |
67 | | - </HorizontalStackLayout> |
68 | | - </Grid> |
69 | | - </Border> |
| 42 | + <HorizontalStackLayout BindableLayout.ItemsSource="{Binding Path=KeyPegs}" HorizontalOptions="Start" Margin="12,0,0,0"> |
| 43 | + <HorizontalStackLayout.Resources> |
| 44 | + <Style TargetType="Ellipse"> |
| 45 | + <Setter Property="Stroke" Value="White" /> |
| 46 | + <Setter Property="StrokeThickness" Value="2" /> |
| 47 | + <Setter Property="WidthRequest" Value="16" /> |
| 48 | + <Setter Property="HeightRequest" Value="16" /> |
| 49 | + <Setter Property="Margin" Value="8" /> |
| 50 | + </Style> |
| 51 | + </HorizontalStackLayout.Resources> |
| 52 | + <BindableLayout.ItemTemplate> |
| 53 | + <DataTemplate> |
| 54 | + <Ellipse Fill="{Binding Converter={StaticResource PegColorConverter}}" /> |
| 55 | + </DataTemplate> |
| 56 | + </BindableLayout.ItemTemplate> |
| 57 | + </HorizontalStackLayout> |
70 | 58 | </HorizontalStackLayout> |
71 | 59 | </Grid> |
72 | 60 | </ViewCell> |
|
0 commit comments