-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppShell.xaml
37 lines (31 loc) · 1.16 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
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="BitBuggy.Shipping.Maui.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:BitBuggy.Shipping.Maui"
xmlns:viewmodels="clr-namespace:BitBuggy.Shipping.Maui.ViewModels"
xmlns:views="clr-namespace:BitBuggy.Shipping.Maui.Views"
Title="BitBuggy - Shipping"
x:DataType="viewmodels:AccountViewModel"
Appearing="OnAppearing"
Shell.FlyoutBehavior="Flyout">
<FlyoutItem>
<ShellContent
Title="Account"
ContentTemplate="{DataTemplate views:AccountPage}"
Route="account" />
<ShellContent
x:Name="TrackingTab"
Title="Tracking"
ContentTemplate="{DataTemplate views:TrackingPage}"
IsVisible="{Binding SignedIn}"
Route="customer" />
<ShellContent
x:Name="EmployeeTab"
Title="Employee"
ContentTemplate="{DataTemplate views:EmployeeView}"
IsVisible="{Binding ManagementStaff}"
Route="employee" />
</FlyoutItem>
</Shell>