-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppShell.xaml
141 lines (133 loc) · 5.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
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
<?xml version="1.0" encoding="UTF-8"?>
<Shell
x:Class="PSPDFKit.Maui.Catalog.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:views="clr-namespace:PSPDFKit.Maui.Catalog.Examples.Views"
Title="PSPDFKit for MAUI Catalog" TabBarIsVisible="False" ItemTemplate="{StaticResource PSPDFKitShellItemTemplate}"
FlyoutBackdrop="#55111111">
<Shell.FlyoutFooter>
<HorizontalStackLayout HorizontalOptions="Start" Spacing="1" Padding="10">
<HorizontalStackLayout.Resources>
<Style TargetType="Label">
<Setter Property="TextColor" Value="DimGrey" />
<Setter Property="FontSize" Value="10" />
<Setter Property="HorizontalTextAlignment" Value="Center" />
</Style>
</HorizontalStackLayout.Resources>
<Label Text="PSPDFKit for MAUI" FontAttributes="Bold" />
<Label x:Name="AppVersion" />
</HorizontalStackLayout>
</Shell.FlyoutFooter>
<Shell.Style>
<Style TargetType="Shell">
<Setter Property="VisualStateManager.VisualStateGroups">
<VisualStateGroupList>
<VisualStateGroup>
<VisualState x:Name="SmallWindow">
<VisualState.StateTriggers>
<AdaptiveTrigger MinWindowWidth="0" />
</VisualState.StateTriggers>
<VisualState.Setters>
<Setter Property="FlyoutBehavior" Value="Flyout" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="LargeWindow">
<VisualState.StateTriggers>
<AdaptiveTrigger MinWindowWidth="1000" />
</VisualState.StateTriggers>
<VisualState.Setters>
<Setter Property="FlyoutBehavior" Value="Locked" />
</VisualState.Setters>
</VisualState>
</VisualStateGroup>
</VisualStateGroupList>
</Setter>
</Style>
</Shell.Style>
<FlyoutItem FlyoutDisplayOptions="AsMultipleItems">
<FlyoutItem.Style>
<Style TargetType="ShellContent">
<Setter Property="Shell.NavBarIsVisible" Value="{OnIdiom false, Phone=true}" />
</Style>
</FlyoutItem.Style>
<ShellContent
Title="Playground"
Icon="playground.png"
ContentTemplate="{DataTemplate views:Playground}"
Route="Playground" />
</FlyoutItem>
<FlyoutItem FlyoutDisplayOptions="AsMultipleItems">
<FlyoutItem.Style>
<Style TargetType="ShellContent">
<Setter Property="Shell.NavBarIsVisible" Value="{OnIdiom false, Phone=true}" />
</Style>
</FlyoutItem.Style>
<ShellContent
Title="Annotations"
Icon="annotations.png"
ContentTemplate="{DataTemplate views:Annotations}"
Route="Annotations" />
<ShellContent
Title="Instant JSON"
Icon="json.png"
ContentTemplate="{DataTemplate views:InstantJson}"
Route="InstantJson" />
</FlyoutItem>
<FlyoutItem FlyoutDisplayOptions="AsMultipleItems">
<FlyoutItem.Style>
<Style TargetType="ShellContent">
<Setter Property="Shell.NavBarIsVisible" Value="{OnIdiom false, Phone=true}" />
</Style>
</FlyoutItem.Style>
<ShellContent
Title="Main Toolbar Customization"
Icon="main_toolbar.png"
ContentTemplate="{DataTemplate views:MainToolbarCustomization}"
Route="MainToolbarCustomization" />
<ShellContent
Title="Annotation Toolbar Customization"
Icon="annotation_toolbar.png"
ContentTemplate="{DataTemplate views:AnnotationToolbarCustomization}"
Route="AnnotationToolbarCustomization" />
<ShellContent
Title="Activate/Deactivate Tools"
Icon="tools.png"
ContentTemplate="{DataTemplate views:ActivateTools}"
Route="ActivateTools" />
</FlyoutItem>
<FlyoutItem FlyoutDisplayOptions="AsMultipleItems">
<FlyoutItem.Style>
<Style TargetType="ShellContent">
<Setter Property="Shell.NavBarIsVisible" Value="{OnIdiom false, Phone=true}" />
</Style>
</FlyoutItem.Style>
<ShellContent
Title="Load Document"
Icon="load_document.png"
ContentTemplate="{DataTemplate views:LoadDocument}"
Route="LoadDocument" />
<ShellContent
Title="Export Document"
Icon="export_document.png"
ContentTemplate="{DataTemplate views:ExportDocument}"
Route="ExportDocument" />
</FlyoutItem>
<FlyoutItem FlyoutDisplayOptions="AsMultipleItems">
<FlyoutItem.Style>
<Style TargetType="ShellContent">
<Setter Property="Shell.NavBarIsVisible" Value="{OnIdiom false, Phone=true}" />
</Style>
</FlyoutItem.Style>
<ShellContent
Title="Advance API Access"
Icon="advance_api.png"
ContentTemplate="{DataTemplate views:AdvanceAPIAccess}"
Route="AdvanceAPIAccess" />
</FlyoutItem>
<ShellContent
Icon="about.png"
Title="About"
ContentTemplate="{DataTemplate views:AboutPage}"
Route="About" />
</Shell>