-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppShell.xaml
222 lines (202 loc) · 10.7 KB
/
AppShell.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="FlyoutDemo.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:FlyoutDemo"
Shell.FlyoutBehavior="Flyout"
FlyoutBackgroundImage="dark_cctv.png"
FlyoutBackgroundImageAspect="Fill"
Title="FlyoutDemo">
<Shell.FlyoutHeader>
<!--<Label Text="COLORS" FontSize="Large" HorizontalOptions="Center"
FontFamily="OpenSans_Semibold" FontAttributes="Bold"/>-->
<Image Source="header.png" Aspect="Fill" HeightRequest="50"/>
</Shell.FlyoutHeader>
<Shell.FlyoutFooter>
<!--<Label Text="Click the color to navigate" FontSize="Large" HorizontalOptions="Center"
FontFamily="OpenSans_Semibold" TextColor="Red" FontAttributes="Bold" MaxLines="22"/>-->
<Image Source="footer.png" Aspect="Fill" HeightRequest="50"/>
</Shell.FlyoutFooter>
<Shell.ItemTemplate>
<DataTemplate>
<Grid ColumnDefinitions="50, *" Padding="7" RowDefinitions="28">
<Image Source="{Binding Icon}" Grid.Column="0"/>
<Label Text="{Binding Title}" FontFamily="OpenSans_SemiBold"
FontSize="Large" FontAttributes="Bold" Grid.Column="1" VerticalOptions="Center" TextColor="White"/>
</Grid>
</DataTemplate>
</Shell.ItemTemplate>
<FlyoutItem Title="Home" Icon="dotnet_bot.png">
<ShellContent Title="Home"
ContentTemplate="{DataTemplate local:MainPage}" Route="MainPage"/>
</FlyoutItem>
<FlyoutItem Title="Red Page" Icon="letter_red.png">
<ShellContent Title="Red Page"
ContentTemplate="{DataTemplate local:RedPage}" Route="RedPage"/>
</FlyoutItem>
<FlyoutItem Title="Green Page" Icon="letter_red.png">
<ShellContent Title="Green Page"
ContentTemplate="{DataTemplate local:GreenPage}" Route="GreenPage"/>
</FlyoutItem>
<FlyoutItem Title="Blue Page" Icon="letter_red.png">
<ShellContent Title="Blue Page"
ContentTemplate="{DataTemplate local:BluePage}" Route="BluePage"/>
</FlyoutItem>
<FlyoutItem Title="Yellow Page" Icon="letter_red.png">
<ShellContent Title="Yellow Page" Route="YellowPage">
<ContentPage BackgroundColor="Yellow">
<VerticalStackLayout Spacing="15" Padding="0, 20"
HorizontalOptions="Center" VerticalOptions="Center">
<Label Text="Yellow Page" TextColor="Black"
VerticalOptions="Center" HorizontalOptions="Center"
FontFamily="OpenSans_Semibold" FontSize="45" FontAttributes="Bold"/>
</VerticalStackLayout>
</ContentPage>
</ShellContent>
</FlyoutItem>
<FlyoutItem Title="Orange Page" Icon="letter_red.png">
<ShellContent Title="Orange Page" Route="OrangePage">
<ContentPage BackgroundColor="Orange">
<VerticalStackLayout Spacing="15" Padding="0, 20"
HorizontalOptions="Center" VerticalOptions="Center">
<Label Text="Orange Page" TextColor="Black"
VerticalOptions="Center" HorizontalOptions="Center"
FontFamily="OpenSans_Semibold" FontSize="40" FontAttributes="Bold"/>
</VerticalStackLayout>
</ContentPage>
</ShellContent>
</FlyoutItem>
<FlyoutItem Title="Cyan Page" Icon="letter_red.png">
<ShellContent Title="Cyan Page" Route="CyanPage">
<ContentPage BackgroundColor="Cyan">
<VerticalStackLayout Spacing="15" Padding="0, 20"
HorizontalOptions="Center" VerticalOptions="Center">
<Label Text="Cyan Page" TextColor="Black"
VerticalOptions="Center" HorizontalOptions="Center"
FontFamily="OpenSans_Semibold" FontSize="40" FontAttributes="Bold"/>
</VerticalStackLayout>
</ContentPage>
</ShellContent>
</FlyoutItem>
<FlyoutItem Title="Black Page" Icon="dotnet_bot.png">
<ShellContent Title="Black Page" Route="BlackPage">
<ContentPage BackgroundColor="Black">
<VerticalStackLayout Spacing="15" Padding="0, 20"
HorizontalOptions="Center" VerticalOptions="Center">
<Label Text="Black Page" TextColor="White"
VerticalOptions="Center" HorizontalOptions="Center"
FontFamily="OpenSans_Semibold" FontSize="40" FontAttributes="Bold"/>
</VerticalStackLayout>
</ContentPage>
</ShellContent>
</FlyoutItem>
<FlyoutItem Title="Lime Page" Icon="letter_red.png">
<ShellContent Title="Lime Page" Route="LimePage">
<ContentPage BackgroundColor="Lime">
<VerticalStackLayout Spacing="15" Padding="0, 20"
HorizontalOptions="Center" VerticalOptions="Center">
<Label Text="Lime Page" TextColor="Black"
VerticalOptions="Center" HorizontalOptions="Center"
FontFamily="OpenSans_Semibold" FontSize="40" FontAttributes="Bold"/>
</VerticalStackLayout>
</ContentPage>
</ShellContent>
</FlyoutItem>
<FlyoutItem Title="Magenta Page" Icon="dotnet_bot.png">
<ShellContent Title="Magenta Page" Route="MagentaPage">
<ContentPage BackgroundColor="Magenta">
<VerticalStackLayout Spacing="15" Padding="0, 20"
HorizontalOptions="Center" VerticalOptions="Center">
<Label Text="Magenta Page" TextColor="Black"
VerticalOptions="Center" HorizontalOptions="Center"
FontFamily="OpenSans_Semibold" FontSize="40" FontAttributes="Bold"/>
</VerticalStackLayout>
</ContentPage>
</ShellContent>
</FlyoutItem>
<FlyoutItem Title="Navy Page" Icon="letter_red.png">
<ShellContent Title="Navy Page" Route="NavyPage">
<ContentPage BackgroundColor="Navy">
<VerticalStackLayout Spacing="15" Padding="0, 20"
HorizontalOptions="Center" VerticalOptions="Center">
<Label Text="Navy Page" TextColor="White"
VerticalOptions="Center" HorizontalOptions="Center"
FontFamily="OpenSans_Semibold" FontSize="40" FontAttributes="Bold"/>
</VerticalStackLayout>
</ContentPage>
</ShellContent>
</FlyoutItem>
<FlyoutItem Title="Pink Page" Icon="dotnet_bot.png">
<ShellContent Title="Pink Page" Route="PinkPage">
<ContentPage BackgroundColor="Pink">
<VerticalStackLayout Spacing="15" Padding="0, 20"
HorizontalOptions="Center" VerticalOptions="Center">
<Label Text="Pink Page" TextColor="Black"
VerticalOptions="Center" HorizontalOptions="Center"
FontFamily="OpenSans_Semibold" FontSize="40" FontAttributes="Bold"/>
</VerticalStackLayout>
</ContentPage>
</ShellContent>
</FlyoutItem>
<FlyoutItem Title="Purple Page" Icon="dotnet_bot.png">
<ShellContent Title="Purple Page" Route="PurplePage">
<ContentPage BackgroundColor="Purple">
<VerticalStackLayout Spacing="15" Padding="0, 20"
HorizontalOptions="Center" VerticalOptions="Center">
<Label Text="Purple Page" TextColor="White"
VerticalOptions="Center" HorizontalOptions="Center"
FontFamily="OpenSans_Semibold" FontSize="40" FontAttributes="Bold"/>
</VerticalStackLayout>
</ContentPage>
</ShellContent>
</FlyoutItem>
<FlyoutItem Title="Salmon Page" Icon="letter_red.png">
<ShellContent Title="Salmon Page" Route="SalmonPage">
<ContentPage BackgroundColor="Salmon">
<VerticalStackLayout Spacing="15" Padding="0, 20"
HorizontalOptions="Center" VerticalOptions="Center">
<Label Text="Salmon Page" TextColor="Black"
VerticalOptions="Center" HorizontalOptions="Center"
FontFamily="OpenSans_Semibold" FontSize="40" FontAttributes="Bold"/>
</VerticalStackLayout>
</ContentPage>
</ShellContent>
</FlyoutItem>
<FlyoutItem Title="Turquoise Page" Icon="dotnet_bot.png">
<ShellContent Title="Turquoise Page" Route="TurquoisePage">
<ContentPage BackgroundColor="Turquoise">
<VerticalStackLayout Spacing="15" Padding="0, 20"
HorizontalOptions="Center" VerticalOptions="Center">
<Label Text="Turquoise Page" TextColor="Black"
VerticalOptions="Center" HorizontalOptions="Center"
FontFamily="OpenSans_Semibold" FontSize="40" FontAttributes="Bold"/>
</VerticalStackLayout>
</ContentPage>
</ShellContent>
</FlyoutItem>
<FlyoutItem Title="Violet Page" Icon="letter_red.png">
<ShellContent Title="Violet Page" Route="VioletPage">
<ContentPage BackgroundColor="Violet">
<VerticalStackLayout Spacing="15" Padding="0, 20"
HorizontalOptions="Center" VerticalOptions="Center">
<Label Text="Violet Page" TextColor="Black"
VerticalOptions="Center" HorizontalOptions="Center"
FontFamily="OpenSans_Semibold" FontSize="40" FontAttributes="Bold"/>
</VerticalStackLayout>
</ContentPage>
</ShellContent>
</FlyoutItem>
<FlyoutItem Title="Wheat Page" Icon="dotnet_bot.png">
<ShellContent Title="Wheat Page" Route="WheatPage">
<ContentPage BackgroundColor="Wheat">
<VerticalStackLayout Spacing="15" Padding="0, 20"
HorizontalOptions="Center" VerticalOptions="Center">
<Label Text="Wheat Page" TextColor="Black"
VerticalOptions="Center" HorizontalOptions="Center"
FontFamily="OpenSans_Semibold" FontSize="40" FontAttributes="Bold"/>
</VerticalStackLayout>
</ContentPage>
</ShellContent>
</FlyoutItem>
</Shell>