-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppShell.xaml
More file actions
65 lines (54 loc) · 2.73 KB
/
Copy pathAppShell.xaml
File metadata and controls
65 lines (54 loc) · 2.73 KB
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
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="EnlightenMAUI.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:EnlightenMAUI"
Shell.FlyoutBehavior="Disabled"
Shell.TabBarBackgroundColor="#333"
Shell.TabBarForegroundColor="#EEE"
Shell.TabBarDisabledColor="#555"
Shell.TabBarUnselectedColor="#BBB"
Shell.TabBarTitleColor="#EEE"
Title="EnlightenMAUI">
<Shell.BindingContext>
<local:ViewModels.ShellViewModel/>
</Shell.BindingContext>
<TabBar>
<!--
This example from StackOverflow shows shelltab_0 could be referenced directly:
https://stackoverflow.com/questions/75551165/switch-app-shell-tab-programmatically-to-current-page-on-tab-not-with-gotoasync
-->
<!-- About -->
<Tab Title="About" Icon="Images/about_icon.png">
<ShellContent x:Name="AboutTab" ContentTemplate="{DataTemplate local:AboutPage}" Route="AboutPage"/>
</Tab>
<!-- Bluetooth® LE -->
<Tab Title="Pair" Icon="IMages/pairing_icon.png">
<ShellContent x:Name="BluetoothTab" ContentTemplate="{DataTemplate local:BluetoothPage}" Route="BluetoothPage"/>
</Tab>
<!-- Scope -->
<Tab Title="Spectra" IsEnabled="{Binding specConnected}" Icon="Images/spectra_icon.png">
<ShellContent x:Name="ScopeTab" ContentTemplate="{DataTemplate local:ScopePage}" Route="ScopePage"/>
</Tab>
<Tab Title="Analysis" Icon="Images/analysis_icon.png" IsEnabled="{Binding specConnected}">
<ShellContent x:Name="AnalysisTab" ContentTemplate="{DataTemplate local:AnalysisPage}" Route="AnalysisPage"/>
</Tab>
<!-- Application Settings -->
<Tab Title="Configuration" IsEnabled="{Binding specConnected}" Icon="Images/ico_gear.png">
<ShellContent x:Name="SettingsTab" ContentTemplate="{DataTemplate local:SettingsPage}" Route="SettingsPage"/>
</Tab>
<!-- Hardware -->
<Tab Title="Hardware" IsEnabled="{Binding specConnected}" Icon="Images/ico_xs.png">
<ShellContent x:Name="HardwareTab" ContentTemplate="{DataTemplate local:HardwarePage}" Route="HardwarePage"/>
</Tab>
<!-- Log -->
<Tab Title="Log" Icon="Images/ico_page.png">
<ShellContent x:Name="LogTab" ContentTemplate="{DataTemplate local:LogPage}" Route="LogPage"/>
</Tab>
<!-- Clipboard -->
<!--
<ShellContent x:Name="ClipboardTab" Title="Clipboard" Icon="Images/ico_clipboard.png" ContentTemplate="{DataTemplate local:ClipboardPage}" Route="ClipboardPage"/>
-->
</TabBar>
</Shell>