Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 1 | <!-- **********************************************************************
|
| 2 | * Copyright (C) 2016 by Savoir-faire Linux *
|
| 3 | * Author: Jäger Nicolas<nicolas.jager@savoirfairelinux.com> *
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 4 | * Author: Traczyk Andreas<andreas.traczyk@savoirfairelinux.com> *
|
Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 5 | * *
|
| 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 Jager | a570103 | 2016-10-21 12:53:13 -0400 | [diff] [blame] | 25 | NavigationCacheMode="Enabled"
|
Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 26 | mc:Ignorable="d">
|
| 27 |
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 28 | <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 Jager | 1586120 | 2016-08-12 11:13:05 -0400 | [diff] [blame] | 43 | <Grid>
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 44 | <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>
|
atraczyk | aef68d0 | 2016-12-06 13:58:24 -0500 | [diff] [blame^] | 54 | <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">
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 67 | <Image x:Name="_loadingImage_"
|
atraczyk | 6cae7a6 | 2016-11-30 14:56:31 -0500 | [diff] [blame] | 68 | Source="Assets/SplashScreen.scale-200.png"
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 69 | Width="620"
|
atraczyk | aef68d0 | 2016-12-06 13:58:24 -0500 | [diff] [blame^] | 70 | Height="300">
|
| 71 | <Image.RenderTransform>
|
| 72 | <TranslateTransform X="-310" Y="-150"/>
|
| 73 | </Image.RenderTransform>
|
| 74 | </Image>
|
atraczyk | 6cae7a6 | 2016-11-30 14:56:31 -0500 | [diff] [blame] | 75 | <ProgressRing x:Name="_splashProgressRing_"
|
| 76 | Foreground="#19a0b7"
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 77 | IsActive="True"
|
| 78 | MaxWidth="200"
|
| 79 | MaxHeight="200"
|
atraczyk | aef68d0 | 2016-12-06 13:58:24 -0500 | [diff] [blame^] | 80 | Width="136"
|
| 81 | Height="136">
|
| 82 | <ProgressRing.RenderTransform>
|
| 83 | <TranslateTransform X="-166" Y="-68"/>
|
| 84 | </ProgressRing.RenderTransform>
|
| 85 | </ProgressRing>
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 86 | </Canvas>
|
| 87 | </Grid>
|
Nicolas Jager | 1586120 | 2016-08-12 11:13:05 -0400 | [diff] [blame] | 88 | <SplitView x:Name="_outerSplitView_"
|
Nicolas Jager | 1586120 | 2016-08-12 11:13:05 -0400 | [diff] [blame] | 89 | IsPaneOpen="False">
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 90 | <SplitView.Pane>
|
| 91 | <Frame x:Name="_consolePanel_"/>
|
| 92 | </SplitView.Pane>
|
| 93 | <SplitView.Content>
|
| 94 | <SplitView x:Name="_innerSplitView_"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 95 | IsPaneOpen="True"
|
| 96 | CompactPaneLength="60"
|
Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 97 | DisplayMode="CompactInline">
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 98 | <SplitView.Pane>
|
atraczyk | c52e6ed | 2016-09-06 14:29:58 -0400 | [diff] [blame] | 99 | <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"
|
atraczyk | aeb4a5c | 2016-12-01 19:17:18 -0500 | [diff] [blame] | 107 | Background="#3bc1d3"
|
atraczyk | c52e6ed | 2016-09-06 14:29:58 -0400 | [diff] [blame] | 108 | 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=""
|
| 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>
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 126 | <SplitView.Content>
|
Nicolas Jager | 8a85e1f | 2016-08-15 15:11:06 -0400 | [diff] [blame] | 127 | <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"/>
|
atraczyk | acc4c41 | 2016-11-10 22:56:52 -0500 | [diff] [blame] | 143 | <Frame x:Name="_previewFrame_"
|
| 144 | Grid.Row="1"
|
| 145 | Canvas.ZIndex="99"
|
| 146 | Visibility="Collapsed"/>
|
Nicolas Jager | 8a85e1f | 2016-08-15 15:11:06 -0400 | [diff] [blame] | 147 | </Grid>
|
| 148 | </SplitView.Content>
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 149 | </SplitView>
|
| 150 | </SplitView.Content>
|
| 151 | </SplitView>
|
Nicolas Jager | 1586120 | 2016-08-12 11:13:05 -0400 | [diff] [blame] | 152 | </Grid>
|
Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 153 | </Page>
|