blob: 7dc2143019150a8e8367f69df2b1b9a476e204cb [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"
25 mc:Ignorable="d">
26
atraczyk1ddcb5a2016-09-07 16:18:30 -040027 <Page.Resources>
28 <Storyboard x:Name="_fadeOutStoryboard_">
29 <DoubleAnimation
30 Storyboard.TargetName="_loadingOverlay_"
31 Storyboard.TargetProperty="Opacity"
32 From="1.0" To="0.0" Duration="0:0:1" Completed="hideLoadingOverlay"/>
33 </Storyboard>
34 <Storyboard x:Name="_fadeInModalStoryboard_">
35 <DoubleAnimation
36 Storyboard.TargetName="_loadingOverlay_"
37 Storyboard.TargetProperty="Opacity"
38 From="0.0" To="0.85" Duration="0:0:0.25"/>
39 </Storyboard>
40 </Page.Resources>
41
Nicolas Jager15861202016-08-12 11:13:05 -040042 <Grid>
atraczyk1ddcb5a2016-09-07 16:18:30 -040043 <Grid x:Name="_loadingOverlay_"
44 Canvas.ZIndex="4"
45 Visibility="Collapsed">
46 <Rectangle x:Name="_loadingOverlayRect_"
47 Canvas.ZIndex="5"
48 Fill="Black"
49 Opacity="0.85"
50 Width="auto"
51 Height="auto">
52 </Rectangle>
53 <Canvas Canvas.ZIndex="6">
54 <Image x:Name="_loadingImage_"
55 Source="Assets/Tests/logo-ring.scale-100.png"
56 Width="620"
57 Height="300"/>
58 <ProgressRing Foreground="#19a0b7"
59 Name="_splashProgressRing_"
60 IsActive="True"
61 MaxWidth="200"
62 MaxHeight="200"
63 Width="118"
64 Height="118"/>
65 </Canvas>
66 </Grid>
Nicolas Jager15861202016-08-12 11:13:05 -040067 <SplitView x:Name="_outerSplitView_"
Nicolas Jager15861202016-08-12 11:13:05 -040068 IsPaneOpen="False">
atraczyk1ddcb5a2016-09-07 16:18:30 -040069 <SplitView.Pane>
70 <Frame x:Name="_consolePanel_"/>
71 </SplitView.Pane>
72 <SplitView.Content>
73 <SplitView x:Name="_innerSplitView_"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -040074 IsPaneOpen="True"
75 CompactPaneLength="60"
Nicolas Jager998fbd72016-08-08 11:41:28 -040076 DisplayMode="CompactInline">
atraczyk1ddcb5a2016-09-07 16:18:30 -040077 <SplitView.Pane>
atraczykc52e6ed2016-09-06 14:29:58 -040078 <Grid>
79 <Grid.RowDefinitions>
80 <RowDefinition Height="32"/>
81 <RowDefinition Height="*"/>
82 </Grid.RowDefinitions>
83 <Grid x:Name="_hamburgerButtonBar_"
84 Canvas.ZIndex="0"
85 Grid.Row="0"
86 Background="LightBlue"
87 Width="320"
88 HorizontalAlignment="Left">
89 <Grid.ColumnDefinitions>
90 <ColumnDefinition Width="60"/>
91 </Grid.ColumnDefinitions>
92 <!-- hamburger button. -->
93 <Button x:Name="_toggleSmartBoxButton_"
94 Grid.Row="0"
95 Content="&#xE700;"
96 Click="_toggleSmartBoxButton__Click"
97 HorizontalAlignment="Center"
98 Style="{StaticResource HamburgerButtonStyle}"/>
99 </Grid>
100 <Frame x:Name="_smartPanel_"
101 Grid.Row="1">
102 </Frame>
103 </Grid>
104 </SplitView.Pane>
atraczyk1ddcb5a2016-09-07 16:18:30 -0400105 <SplitView.Content>
Nicolas Jager8a85e1f2016-08-15 15:11:06 -0400106 <Grid x:Name="_navGrid_">
107 <Grid.RowDefinitions>
108 <!-- stores the hidden frames. -->
109 <RowDefinition Height="0"/>
110 <!-- nesting the showed frame. -->
111 <RowDefinition Height="*"/>
112 </Grid.RowDefinitions>
113 <Frame x:Name="_welcomeFrame_"
114 Grid.Row="1"
115 Visibility="Visible"/>
116 <Frame x:Name="_messageTextFrame_"
117 Grid.Row="0"
118 Visibility="Visible"/>
119 <Frame x:Name="_videoFrame_"
120 Grid.Row="0"
121 Visibility="Visible"/>
122 </Grid>
123 </SplitView.Content>
atraczyk1ddcb5a2016-09-07 16:18:30 -0400124 </SplitView>
125 </SplitView.Content>
126 </SplitView>
Nicolas Jager15861202016-08-12 11:13:05 -0400127 </Grid>
Nicolas Jager998fbd72016-08-08 11:41:28 -0400128</Page>