blob: d803ef701cfcc1e98c8cbc7a346a6ff01be8ff9d [file] [log] [blame]
Nicolas Jager998fbd72016-08-08 11:41:28 -04001<!-- **********************************************************************
2* Copyright (C) 2016 by Savoir-faire Linux *
3* Author: Jäger Nicolas<nicolas.jager@savoirfairelinux.com> *
atraczyk1ddcb5a2016-09-07 16:18:30 -04004* Author: Traczyk Andreas<andreas.traczyk@savoirfairelinux.com> *
Nicolas Jager998fbd72016-08-08 11:41:28 -04005* *
6* This program is free software; you can redistribute it and/or modify *
7* it under the terms of the GNU General Public License as published by *
8* the Free Software Foundation; either version 3 of the License, or *
9* (at your option) any later version. *
10* *
11* This program is distributed in the hope that it will be useful, *
12* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14* GNU General Public License for more details. *
15* *
16* You should have received a copy of the GNU General Public License *
17* along with this program. If not, see <http://www.gnu.org/licenses/> . *
18*********************************************************************** -->
19<Page x:Class="RingClientUWP.MainPage"
20 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
21 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
22 xmlns:local="using:RingClientUWP"
23 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
24 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Nicolas Jagera5701032016-10-21 12:53:13 -040025 NavigationCacheMode="Enabled"
Nicolas Jager998fbd72016-08-08 11:41:28 -040026 mc:Ignorable="d">
27
atraczyk1ddcb5a2016-09-07 16:18:30 -040028 <Page.Resources>
29 <Storyboard x:Name="_fadeOutStoryboard_">
30 <DoubleAnimation
31 Storyboard.TargetName="_loadingOverlay_"
32 Storyboard.TargetProperty="Opacity"
33 From="1.0" To="0.0" Duration="0:0:1" Completed="hideLoadingOverlay"/>
34 </Storyboard>
35 <Storyboard x:Name="_fadeInModalStoryboard_">
36 <DoubleAnimation
37 Storyboard.TargetName="_loadingOverlay_"
38 Storyboard.TargetProperty="Opacity"
39 From="0.0" To="0.85" Duration="0:0:0.25"/>
40 </Storyboard>
41 </Page.Resources>
42
Nicolas Jager15861202016-08-12 11:13:05 -040043 <Grid>
atraczyk1ddcb5a2016-09-07 16:18:30 -040044 <Grid x:Name="_loadingOverlay_"
45 Canvas.ZIndex="4"
46 Visibility="Collapsed">
47 <Rectangle x:Name="_loadingOverlayRect_"
48 Canvas.ZIndex="5"
49 Fill="Black"
50 Opacity="0.85"
51 Width="auto"
52 Height="auto">
53 </Rectangle>
54 <Canvas Canvas.ZIndex="6">
55 <Image x:Name="_loadingImage_"
atraczyk6cae7a62016-11-30 14:56:31 -050056 Source="Assets/SplashScreen.scale-200.png"
atraczyk1ddcb5a2016-09-07 16:18:30 -040057 Width="620"
58 Height="300"/>
atraczyk6cae7a62016-11-30 14:56:31 -050059 <ProgressRing x:Name="_splashProgressRing_"
60 Foreground="#19a0b7"
atraczyk1ddcb5a2016-09-07 16:18:30 -040061 IsActive="True"
62 MaxWidth="200"
63 MaxHeight="200"
64 Width="118"
65 Height="118"/>
66 </Canvas>
67 </Grid>
Nicolas Jager15861202016-08-12 11:13:05 -040068 <SplitView x:Name="_outerSplitView_"
Nicolas Jager15861202016-08-12 11:13:05 -040069 IsPaneOpen="False">
atraczyk1ddcb5a2016-09-07 16:18:30 -040070 <SplitView.Pane>
71 <Frame x:Name="_consolePanel_"/>
72 </SplitView.Pane>
73 <SplitView.Content>
74 <SplitView x:Name="_innerSplitView_"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -040075 IsPaneOpen="True"
76 CompactPaneLength="60"
Nicolas Jager998fbd72016-08-08 11:41:28 -040077 DisplayMode="CompactInline">
atraczyk1ddcb5a2016-09-07 16:18:30 -040078 <SplitView.Pane>
atraczykc52e6ed2016-09-06 14:29:58 -040079 <Grid>
80 <Grid.RowDefinitions>
81 <RowDefinition Height="32"/>
82 <RowDefinition Height="*"/>
83 </Grid.RowDefinitions>
84 <Grid x:Name="_hamburgerButtonBar_"
85 Canvas.ZIndex="0"
86 Grid.Row="0"
atraczykaeb4a5c2016-12-01 19:17:18 -050087 Background="#3bc1d3"
atraczykc52e6ed2016-09-06 14:29:58 -040088 Width="320"
89 HorizontalAlignment="Left">
90 <Grid.ColumnDefinitions>
91 <ColumnDefinition Width="60"/>
92 </Grid.ColumnDefinitions>
93 <!-- hamburger button. -->
94 <Button x:Name="_toggleSmartBoxButton_"
95 Grid.Row="0"
96 Content="&#xE700;"
97 Click="_toggleSmartBoxButton__Click"
98 HorizontalAlignment="Center"
99 Style="{StaticResource HamburgerButtonStyle}"/>
100 </Grid>
101 <Frame x:Name="_smartPanel_"
102 Grid.Row="1">
103 </Frame>
104 </Grid>
105 </SplitView.Pane>
atraczyk1ddcb5a2016-09-07 16:18:30 -0400106 <SplitView.Content>
Nicolas Jager8a85e1f2016-08-15 15:11:06 -0400107 <Grid x:Name="_navGrid_">
108 <Grid.RowDefinitions>
109 <!-- stores the hidden frames. -->
110 <RowDefinition Height="0"/>
111 <!-- nesting the showed frame. -->
112 <RowDefinition Height="*"/>
113 </Grid.RowDefinitions>
114 <Frame x:Name="_welcomeFrame_"
115 Grid.Row="1"
116 Visibility="Visible"/>
117 <Frame x:Name="_messageTextFrame_"
118 Grid.Row="0"
119 Visibility="Visible"/>
120 <Frame x:Name="_videoFrame_"
121 Grid.Row="0"
122 Visibility="Visible"/>
atraczykacc4c412016-11-10 22:56:52 -0500123 <Frame x:Name="_previewFrame_"
124 Grid.Row="1"
125 Canvas.ZIndex="99"
126 Visibility="Collapsed"/>
Nicolas Jager8a85e1f2016-08-15 15:11:06 -0400127 </Grid>
128 </SplitView.Content>
atraczyk1ddcb5a2016-09-07 16:18:30 -0400129 </SplitView>
130 </SplitView.Content>
131 </SplitView>
Nicolas Jager15861202016-08-12 11:13:05 -0400132 </Grid>
Nicolas Jager998fbd72016-08-08 11:41:28 -0400133</Page>