-
Notifications
You must be signed in to change notification settings - Fork 1
/
Header.ux
42 lines (38 loc) · 1.53 KB
/
Header.ux
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
<DockPanel ux:Class="Header">
<Router ux:Dependency="router"/>
<!--
The title is partially static and dynamic:
- The Menu or Back button is on all pages and in the code here
- Each page will use `TitleAreaContent` to add a title, or other controls into this panel.
-->
<Panel Dock="Top" ux:Name="titleArea" Height="50" Color="PrimaryColor">
<DropShadow/>
<!-- Include Back or Menu navigation -->
<Panel Alignment="Left" Padding="5,0" HitTestMode="LocalBounds" Navigation="router">
<WhileCanGoBack>
<Text Value="" Alignment="Center" Color="IconColor" Font="MaterialIcons" FontSize="28"/>
<Clicked>
<GoBack/>
</Clicked>
</WhileCanGoBack>
<WhileCanGoBack Invert="true">
<Text Value="" Alignment="Center" Color="IconColor" Font="MaterialIcons" FontSize="28"/>
<Clicked>
<RaiseUserEvent EventName="requestMenu"/>
</Clicked>
</WhileCanGoBack>
</Panel>
</Panel>
<!-- The `TitleAreaContent` finds the panel via a resource binding -->
<ResourceObject Key="titleArea" Value="titleArea"/>
<!--
Two levels of navigation are used.
The "home" path contains the bottom action bar to quickly navigate between top-level sections. Any page that wishes to have this action bar should reside inside "home".
The other pages will not have this action bar, but will still have the common titleArea.
-->
<Navigator DefaultPath="home">
<Home ux:Template="home"/>
<GstCalculation ux:Template="gstCalculation"/>
<AboutUs ux:Template="aboutUs"/>
</Navigator>
</DockPanel>