-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppShell.xaml
55 lines (53 loc) · 2.27 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
<?xml version="1.0" encoding="UTF-8" ?>
<Shell
x:Class="DVisit.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:controls="clr-namespace:DVisit.Controls"
xmlns:views="clr-namespace:DVisit.Views"
xmlns:helpers="clr-namespace:DVisit.Helpers"
Shell.FlyoutBehavior="Disabled"
Title="DVisit">
<FlyoutItem FlyoutDisplayOptions="AsMultipleItems">
<ShellContent
Title="Cargando"
Shell.NavBarIsVisible="false"
Shell.TabBarIsVisible="false"
FlyoutItemIsVisible="false"
ContentTemplate="{DataTemplate views:LoadingPage}"
Route="LoadingPage" />
<ShellContent Route="LoginPage"
Shell.NavBarIsVisible="false"
Shell.TabBarIsVisible="false"
FlyoutItemIsVisible="false"
ContentTemplate="{DataTemplate views:LoginPage}"/>
<ShellContent
Shell.NavBarIsVisible="true"
Shell.TabBarIsVisible="false"
Title="Visitas"
ContentTemplate="{DataTemplate views:MainPage}"
Route="MainPage">
<ShellContent.Icon>
<FontImageSource FontFamily="FontAwesomeSolid" Glyph="{x:Static helpers:FontAwesomeIcons.Briefcase}" Color="#0e8ebc" Size="50"/>
</ShellContent.Icon>
</ShellContent>
<ShellContent
Shell.NavBarIsVisible="true"
Shell.TabBarIsVisible="false"
Title="Configuración"
ContentTemplate="{DataTemplate views:SettingsPage}"
Route="SettingsPage">
<ShellContent.Icon>
<FontImageSource FontFamily="FontAwesomeSolid" Glyph="{x:Static helpers:FontAwesomeIcons.Settings}" Color="#0e8ebc" Size="50"/>
</ShellContent.Icon>
</ShellContent>
</FlyoutItem>
<MenuItem Text="Cerrar Sesión" Clicked="LogOut_Clicked">
<MenuItem.IconImageSource>
<FontImageSource FontFamily="FontAwesomeSolid" Glyph="{x:Static helpers:FontAwesomeIcons.SignOut}" Color="#0e8ebc" Size="50"/>
</MenuItem.IconImageSource>
</MenuItem>
<Shell.FlyoutFooter>
<controls:FooterControl />
</Shell.FlyoutFooter>
</Shell>