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"
|
| 25 | mc:Ignorable="d">
|
| 26 |
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 27 | <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 Jager | 1586120 | 2016-08-12 11:13:05 -0400 | [diff] [blame] | 42 | <Grid>
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 43 | <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 Jager | 1586120 | 2016-08-12 11:13:05 -0400 | [diff] [blame] | 67 | <SplitView x:Name="_outerSplitView_"
|
Nicolas Jager | 1586120 | 2016-08-12 11:13:05 -0400 | [diff] [blame] | 68 | IsPaneOpen="False">
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 69 | <SplitView.Pane>
|
| 70 | <Frame x:Name="_consolePanel_"/>
|
| 71 | </SplitView.Pane>
|
| 72 | <SplitView.Content>
|
| 73 | <SplitView x:Name="_innerSplitView_"
|
Nicolas Jager | bff5fbb | 2016-08-18 08:58:56 -0400 | [diff] [blame] | 74 | IsPaneOpen="True"
|
| 75 | CompactPaneLength="60"
|
Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 76 | DisplayMode="CompactInline">
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 77 | <SplitView.Pane>
|
atraczyk | c52e6ed | 2016-09-06 14:29:58 -0400 | [diff] [blame] | 78 | <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=""
|
| 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>
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 105 | <SplitView.Content>
|
Nicolas Jager | 8a85e1f | 2016-08-15 15:11:06 -0400 | [diff] [blame] | 106 | <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>
|
atraczyk | 1ddcb5a | 2016-09-07 16:18:30 -0400 | [diff] [blame] | 124 | </SplitView>
|
| 125 | </SplitView.Content>
|
| 126 | </SplitView>
|
Nicolas Jager | 1586120 | 2016-08-12 11:13:05 -0400 | [diff] [blame] | 127 | </Grid>
|
Nicolas Jager | 998fbd7 | 2016-08-08 11:41:28 -0400 | [diff] [blame] | 128 | </Page>
|