-
Notifications
You must be signed in to change notification settings - Fork 1
/
SideMenu.ux
34 lines (30 loc) · 1.1 KB
/
SideMenu.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
<DockPanel Color="White" ux:Class="SideMenu" ux:Name="sideMenu">
<Router ux:Dependency="router"/>
<JavaScript>
exports.gotoGst = function() {
router.push( "gstCalculation" )
}
exports.gotoAboutUs = function() {
router.push( "aboutUs" )
}
</JavaScript>
<!-- logo / app name -->
<Panel Dock="Top">
<Text Value="GST Calculator" Alignment="Center" Margin="0,10,0,10" FontSize="30"/>
</Panel>
<Panel ux:Class="MenuItem" HitTestMode="LocalBounds">
<string ux:Property="Icon"/>
<string ux:Property="Label"/>
<object ux:Property="Handler"/>
<Text Alignment="CenterLeft" Width="32" Margin="4,0" Value="{Property this.Icon}"
Font="MaterialIcons" FontSize="32"/>
<Text Alignment="CenterLeft" Margin="40,0,10,0" Value="{Property this.Label}"/>
<Clicked Handler="{Property this.Handler}">
<RaiseUserEvent EventName="dismissMenu"/>
</Clicked>
</Panel>
<StackPanel ItemSpacing="5" Margin="30,30,30,30">
<MenuItem Icon="" Label="GST Calculation" Handler="{gotoGst}"/>
<MenuItem Icon="" Label="About US" Handler="{gotoAboutUs}"/>
</StackPanel>
</DockPanel>