forked from KrishAmal/Fuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainView.ux
executable file
·79 lines (79 loc) · 3.68 KB
/
MainView.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
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
<App Background="#fff">
<iOS.StatusBarConfig Style="Dark" />
<Android.StatusBarConfig Color="#636364" />
<JavaScript File="MainView.js" />
<Router ux:Name="router" />
<Font File="Pages/PTF55F.ttf" ux:Global="Cat" />
<Font File="Pages/PTS55F.ttf" ux:Global="Dog" />
<Font File="Pages/PTS75F.ttf" ux:Global="Horse" />
<Font File="Pages/PTF75F.ttf" ux:Global="Mouse" />
<Text ux:Class="Cat" Font="Cat" FontSize="20" Color="#636364" />
<Text ux:Class="Dog" Font="Dog" FontSize="20" Color="#636364" />
<Text ux:Class="Horse" Font="Horse" FontSize="20" Color="#FFF" />
<Text ux:Class="Mouse" Font="Mouse" FontSize="18" Color="#FFF" />
<EdgeNavigator ux:Name="EdgeNavigator">
<Sidebar Width="200" ux:Name="menu" EdgeNavigation.Edge="Left">
<ActivatingAnimation>
<Change mainAppTranslation.X="200" />
<Change topMenuTranslation.Y="0" />
<Change bottomMenuTranslation.Y="0" />
<Change middleRectangle.Opacity="0" Easing="CircularOut" />
<Change topMenuRotation.Degrees="45" Easing="ExponentialIn" />
<Change bottomMenuRotation.Degrees="-45" Easing="ExponentialIn" />
<Change topRectangle.Width="28" />
<Change bottomRectangle.Width="28" />
</ActivatingAnimation>
<WhileActive>
<Callback Handler="{setSidebarOpen}" />
</WhileActive>
<WhileInactive>
<Callback Handler="{setSidebarClosed}" />
</WhileInactive>
</Sidebar>
<ClientPanel ux:Name="content">
<Panel Margin="7,5,5,5" Height="32" Width="32" HitTestMode="LocalBounds" Alignment="TopLeft">
<WhileTrue Value="{sidebarOpen}">
<Clicked>
<NavigateTo Target="content" />
</Clicked>
</WhileTrue>
<WhileFalse Value="{sidebarOpen}">
<Clicked>
<NavigateTo Target="menu" />
</Clicked>
</WhileFalse>
<Rectangle ux:Name="topRectangle" Height="2" Width="26" Color="#000">
<Translation Y="-9" ux:Name="topMenuTranslation" />
<Rotation ux:Name="topMenuRotation" />
</Rectangle>
<Rectangle ux:Name="middleRectangle" Height="2" Width="26" Color="#000" />
<Rectangle ux:Name="bottomRectangle" Height="2" Width="26" Color="#000">
<Translation Y="9" ux:Name="bottomMenuTranslation" />
<Rotation ux:Name="bottomMenuRotation" />
</Rectangle>
</Panel>
<Translation ux:Name="mainAppTranslation" />
<Navigator DefaultPath="alerts">
<SplashPage ux:Template="splash" router="router" />
<AlertsPage ux:Template="alerts" router="router" />
<EcansPage ux:Template="ecans" router="router" />
<CameraPage ux:Template="camera" router="router" />
<SignupPage ux:Template="signup" router="router" />
<LoginPage ux:Template="login" router="router" />
<AlertDetailPage ux:Template="alertdetail" router="router" />
<ImpactPage ux:Template="impact" router="router" />
<PaymentPage ux:Template="payment" router="router" />
<BuyEcanPage ux:Template="buyecan" router="router" />
<EcanThankYouPage ux:Template="ecanthanks" router="router" />
<ImpactThankYouPage ux:Template="impactthanks" router="router" />
<SolutionPage ux:Template="solution" router="router" />
<ProfilePage ux:Template="profile" router="router" />
<MapsPage ux:Template="maps" router="router" />
<BarcodePage ux:Template="barcode" router="router" />
<NewsItem ux:Template="newsitems" router="router" />
<BuyEmralsPage ux:Template="buyemrals" router="router" />
<EmralsThankYouPage ux:Template="emralsthanks" router="router" />
</Navigator>
</ClientPanel>
</EdgeNavigator>
</App>