-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppShell.xaml
44 lines (39 loc) · 1.67 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
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="BRTDataTools.App.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:sf="clr-namespace:Syncfusion.Maui.Toolkit.SegmentedControl;assembly=Syncfusion.Maui.Toolkit"
xmlns:pages="clr-namespace:BRTDataTools.App.Pages"
Shell.FlyoutBehavior="Flyout"
Title="BRTDataTools.App">
<ShellContent
Title="Dashboard"
Icon="{StaticResource IconDashboard}"
ContentTemplate="{DataTemplate pages:MainPage}"
Route="main" />
<ShellContent
Title="Projects"
Icon="{StaticResource IconProjects}"
ContentTemplate="{DataTemplate pages:ProjectListPage}"
Route="projects" />
<ShellContent
Title="Manage Meta"
Icon="{StaticResource IconMeta}"
ContentTemplate="{DataTemplate pages:ManageMetaPage}"
Route="manage" />
<Shell.FlyoutFooter>
<Grid Padding="15">
<sf:SfSegmentedControl x:Name="ThemeSegmentedControl"
VerticalOptions="Center" HorizontalOptions="Center" SelectionChanged="SfSegmentedControl_SelectionChanged"
SegmentWidth="40" SegmentHeight="40">
<sf:SfSegmentedControl.ItemsSource>
<x:Array Type="{x:Type sf:SfSegmentItem}">
<sf:SfSegmentItem ImageSource="{StaticResource IconLight}"/>
<sf:SfSegmentItem ImageSource="{StaticResource IconDark}"/>
</x:Array>
</sf:SfSegmentedControl.ItemsSource>
</sf:SfSegmentedControl>
</Grid>
</Shell.FlyoutFooter>
</Shell>