-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCaroScroll.xaml
134 lines (116 loc) · 6.19 KB
/
CaroScroll.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PFBv01.CaroScroll"
Title="CaroScroll">
<Grid x:Name="LayoutRoot" Background="Transparent" >
<Grid.RowDefinitions>
<!--<RowDefinition x:Name="_1_AppTitle" Height="1*"/>-->
<RowDefinition x:Name="_2_SpinningWheels" Height="4*"/>
<RowDefinition x:Name="_3_TickNumbers" Height="2*"/>
<RowDefinition x:Name="_5_GuessButton" Height="3*"/>
<RowDefinition x:Name="_7_Guess1" Height="2*"/>
<RowDefinition x:Name="_8_Guess2" Height="2*"/>
<RowDefinition x:Name="_9_Guess3" Height="2*"/>
<RowDefinition x:Name="_10_Guess4" Height="2*"/>
<RowDefinition x:Name="_11_Guess5" Height="2*"/>
<RowDefinition x:Name="_12_Guess6" Height="2*"/>
<RowDefinition x:Name="_13_Guess7" Height="2*"/>
<RowDefinition x:Name="_14_Guess8" Height="2*"/>
<RowDefinition x:Name="_15_Guess9" Height="2*"/>
<RowDefinition x:Name="_16_Guess10" Height="2*"/>
</Grid.RowDefinitions>
<Grid x:Name="SpinningWheels" Grid.Row="0" Margin="12,0,12,0" >
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Border Grid.Row="0" Grid.Column="0" BackgroundColor="Transparent" Stroke="Transparent" Padding="0">
<CarouselView x:Name="CaroView1" >
<CarouselView.ItemsLayout>
<LinearItemsLayout Orientation="Vertical"
SnapPointsType="MandatorySingle"
SnapPointsAlignment="Center"
ItemSpacing="20" />
</CarouselView.ItemsLayout>
<CarouselView.ItemTemplate>
<DataTemplate x:DataType="x:String">
<StackLayout BackgroundColor="Transparent" Padding="-30">
<Image Source="{Binding .}"
Aspect="AspectFit"
WidthRequest="150" HeightRequest="150"
HorizontalOptions="Center" VerticalOptions="Center" />
</StackLayout>
</DataTemplate>
</CarouselView.ItemTemplate>
</CarouselView>
</Border>
<Border Grid.Row="0" Grid.Column="1" BackgroundColor="Transparent" Stroke="Transparent" Padding="0">
<CarouselView x:Name="CaroView2" >
<CarouselView.ItemsLayout>
<LinearItemsLayout
Orientation="Vertical"
SnapPointsType="MandatorySingle"
SnapPointsAlignment="Center"
ItemSpacing="20" />
</CarouselView.ItemsLayout>
<CarouselView.ItemTemplate>
<DataTemplate x:DataType="x:String">
<StackLayout BackgroundColor="Transparent" Padding="-30">
<Image Source="{Binding .}"
Aspect="AspectFit"
WidthRequest="150" HeightRequest="150"
HorizontalOptions="Center" VerticalOptions="Center" />
</StackLayout>
</DataTemplate>
</CarouselView.ItemTemplate>
</CarouselView>
</Border>
<Border Grid.Row="0" Grid.Column="2" BackgroundColor="Transparent" Stroke="Transparent" Padding="0">
<CarouselView x:Name="CaroView3" >
<CarouselView.ItemsLayout>
<LinearItemsLayout
Orientation="Vertical"
SnapPointsType="MandatorySingle"
SnapPointsAlignment="Center"
ItemSpacing="20" />
</CarouselView.ItemsLayout>
<CarouselView.ItemTemplate>
<DataTemplate x:DataType="x:String">
<StackLayout BackgroundColor="Transparent" Padding="-30">
<Image Source="{Binding .}"
Aspect="AspectFit"
WidthRequest="150" HeightRequest="150"
HorizontalOptions="Center" VerticalOptions="Center" />
</StackLayout>
</DataTemplate>
</CarouselView.ItemTemplate>
</CarouselView>
</Border>
</Grid> <!-- SpinningWheels-->
<Grid x:Name="GuessNewButtonGrid" Padding="3" Grid.Row="2"
RowDefinitions="*"
ColumnDefinitions=".75*,.02*,.29*"
RowSpacing="10"
ColumnSpacing="10" >
<Button x:Name="MakeGuess" Text="Guess!" Grid.Column="0"
FontSize="18"
Clicked="MakeGuess_Click"
HorizontalOptions="FillAndExpand"
VerticalOptions="Center"
Padding="10"
Margin="35,0,35,0"/>
<Button x:Name="NewGame" Text="New Game" Grid.Column="2"
FontSize="18"
HorizontalOptions="FillAndExpand"
VerticalOptions="Center"
Padding="5"
Margin="0,0,20,0"/>
</Grid>
<!--end of GuessNewButtonGrid grid-->
</Grid>
</ContentPage>