blob: 40fcbd1f868c2366457916711306e75736755eab [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>
atraczykaef68d02016-12-06 13:58:24 -050054 <TextBlock x:Name="_loadingStatus_"
55 Foreground="Red"
56 Canvas.ZIndex="7"
57 HorizontalAlignment="Center"
58 VerticalAlignment="Center"
59 Text="[LOADING STATE]">
60 <TextBlock.RenderTransform>
61 <TranslateTransform X="0" Y="100"/>
62 </TextBlock.RenderTransform>
63 </TextBlock>
64 <Canvas Canvas.ZIndex="6"
65 HorizontalAlignment="Center"
66 VerticalAlignment="Center">
atraczyk1ddcb5a2016-09-07 16:18:30 -040067 <Image x:Name="_loadingImage_"
atraczyk6cae7a62016-11-30 14:56:31 -050068 Source="Assets/SplashScreen.scale-200.png"
atraczyk1ddcb5a2016-09-07 16:18:30 -040069 Width="620"
atraczykaef68d02016-12-06 13:58:24 -050070 Height="300">
71 <Image.RenderTransform>
72 <TranslateTransform X="-310" Y="-150"/>
73 </Image.RenderTransform>
74 </Image>
atraczyk6cae7a62016-11-30 14:56:31 -050075 <ProgressRing x:Name="_splashProgressRing_"
76 Foreground="#19a0b7"
atraczyk1ddcb5a2016-09-07 16:18:30 -040077 IsActive="True"
78 MaxWidth="200"
79 MaxHeight="200"
atraczykaef68d02016-12-06 13:58:24 -050080 Width="136"
81 Height="136">
82 <ProgressRing.RenderTransform>
83 <TranslateTransform X="-166" Y="-68"/>
84 </ProgressRing.RenderTransform>
85 </ProgressRing>
atraczyk1ddcb5a2016-09-07 16:18:30 -040086 </Canvas>
87 </Grid>
Nicolas Jager15861202016-08-12 11:13:05 -040088 <SplitView x:Name="_outerSplitView_"
Nicolas Jager15861202016-08-12 11:13:05 -040089 IsPaneOpen="False">
atraczyk1ddcb5a2016-09-07 16:18:30 -040090 <SplitView.Pane>
91 <Frame x:Name="_consolePanel_"/>
92 </SplitView.Pane>
93 <SplitView.Content>
94 <SplitView x:Name="_innerSplitView_"
Nicolas Jagerbff5fbb2016-08-18 08:58:56 -040095 IsPaneOpen="True"
96 CompactPaneLength="60"
Nicolas Jager998fbd72016-08-08 11:41:28 -040097 DisplayMode="CompactInline">
atraczyk1ddcb5a2016-09-07 16:18:30 -040098 <SplitView.Pane>
atraczykc52e6ed2016-09-06 14:29:58 -040099 <Grid>
100 <Grid.RowDefinitions>
101 <RowDefinition Height="32"/>
102 <RowDefinition Height="*"/>
103 </Grid.RowDefinitions>
104 <Grid x:Name="_hamburgerButtonBar_"
105 Canvas.ZIndex="0"
106 Grid.Row="0"
atraczykaeb4a5c2016-12-01 19:17:18 -0500107 Background="#3bc1d3"
atraczykc52e6ed2016-09-06 14:29:58 -0400108 Width="320"
109 HorizontalAlignment="Left">
110 <Grid.ColumnDefinitions>
111 <ColumnDefinition Width="60"/>
112 </Grid.ColumnDefinitions>
113 <!-- hamburger button. -->
114 <Button x:Name="_toggleSmartBoxButton_"
115 Grid.Row="0"
116 Content="&#xE700;"
117 Click="_toggleSmartBoxButton__Click"
118 HorizontalAlignment="Center"
119 Style="{StaticResource HamburgerButtonStyle}"/>
120 </Grid>
121 <Frame x:Name="_smartPanel_"
122 Grid.Row="1">
123 </Frame>
124 </Grid>
125 </SplitView.Pane>
atraczyk1ddcb5a2016-09-07 16:18:30 -0400126 <SplitView.Content>
Nicolas Jager8a85e1f2016-08-15 15:11:06 -0400127 <Grid x:Name="_navGrid_">
128 <Grid.RowDefinitions>
129 <!-- stores the hidden frames. -->
130 <RowDefinition Height="0"/>
131 <!-- nesting the showed frame. -->
132 <RowDefinition Height="*"/>
133 </Grid.RowDefinitions>
134 <Frame x:Name="_welcomeFrame_"
135 Grid.Row="1"
136 Visibility="Visible"/>
137 <Frame x:Name="_messageTextFrame_"
138 Grid.Row="0"
139 Visibility="Visible"/>
140 <Frame x:Name="_videoFrame_"
141 Grid.Row="0"
142 Visibility="Visible"/>
atraczykacc4c412016-11-10 22:56:52 -0500143 <Frame x:Name="_previewFrame_"
144 Grid.Row="1"
145 Canvas.ZIndex="99"
146 Visibility="Collapsed"/>
Nicolas Jager8a85e1f2016-08-15 15:11:06 -0400147 </Grid>
148 </SplitView.Content>
atraczyk1ddcb5a2016-09-07 16:18:30 -0400149 </SplitView>
150 </SplitView.Content>
151 </SplitView>
Nicolas Jager15861202016-08-12 11:13:05 -0400152 </Grid>
Nicolas Jager998fbd72016-08-08 11:41:28 -0400153</Page>