WelcomePage.xaml 4.52 KB
Newer Older
Nicolas Jager's avatar
Nicolas Jager committed
1 2 3
<!-- **********************************************************************
* Copyright (C) 2016 by Savoir-faire Linux                                *
* Author: Jäger Nicolas<nicolas.jager@savoirfairelinux.com>               *
4
* Author: Traczyk Andreas<andreas.traczyk@savoirfairelinux.com>           *
Nicolas Jager's avatar
Nicolas Jager committed
5 6 7 8 9 10 11 12 13 14 15 16 17
*                                                                         *
* This program is free software; you can redistribute it and/or modify    *
* it under the terms of the GNU General Public License as published by    *
* the Free Software Foundation; either version 3 of the License, or       *
* (at your option) any later version.                                     *
*                                                                         *
* This program is distributed in the hope that it will be useful,         *
* but WITHOUT ANY WARRANTY; without even the implied warranty of          *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           *
* GNU General Public License for more details.                            *
*                                                                         *
* You should have received a copy of the GNU General Public License       *
* along with this program.  If not, see <http://www.gnu.org/licenses/> .  *
18
***********************************************************************-->
Nicolas Jager's avatar
Nicolas Jager committed
19 20 21 22
<Page x:Class="RingClientUWP.Views.WelcomePage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
23
      xmlns:local="using:RingClientUWP"
Nicolas Jager's avatar
Nicolas Jager committed
24
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
25
      NavigationCacheMode="Enabled"
Nicolas Jager's avatar
Nicolas Jager committed
26 27
      mc:Ignorable="d">

Nicolas Jager's avatar
Nicolas Jager committed
28 29
    <Grid>
        <Grid.RowDefinitions>
30 31 32 33 34
            <RowDefinition Height="1*" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="2*" />
            <RowDefinition Height="2*" />
            <RowDefinition Height="1*" />
Nicolas Jager's avatar
Nicolas Jager committed
35
        </Grid.RowDefinitions>
Nicolas Jager's avatar
Nicolas Jager committed
36
        <StackPanel Grid.Row="1">
atraczyk's avatar
atraczyk committed
37
            <Image x:Name="_welcomeImage_"
38 39 40 41 42 43
                   Width="310"
                   Height="150"
                   Margin="0,10,0,30"
                   HorizontalAlignment="Center"
                   Source="Assets\Wide310x150Logo.scale-200.png" />
            <TextBlock x:Uid="_welcomeDescription_"
Nicolas Jager's avatar
Nicolas Jager committed
44
                       Width="310"
45
                       MaxWidth="500"
atraczyk's avatar
atraczyk committed
46
                       HorizontalAlignment="Center"
47 48 49 50 51 52 53 54 55 56 57
                       FontSize="12"
                       FontWeight="Bold"
                       Foreground="#707370"
                       TextAlignment="Justify"
                       TextWrapping="Wrap" />
            <HyperlinkButton x:Uid="_welcomePrivacyLink_"
                             HorizontalAlignment="Center"
                             FontSize="12"
                             NavigateUri="https://ring.cx/en/about/privacy-and-anonymity" />
            <Button x:Uid="_welcomeAboutButton_"
                    x:Name="_welcomeAboutButton_"
atraczyk's avatar
atraczyk committed
58 59
                    Margin="0,48,0,0"
                    HorizontalAlignment="Center"
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
                    BorderThickness="0"
                    Click="_welcomeAboutButton__Click"
                    FontSize="12" />
            <Grid Grid.Row="1" Background="White">
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <Grid Grid.Row="0"
                      MaxWidth="140"
                      MaxHeight="140"
                      Margin="10"
                      Padding="5"
                      Background="white">
                    <Image Grid.Row="0"
                           x:Name="_selectedAccountQrCode_"
                           Width="200"
                           Height="200"
                           Margin="5"
                           Stretch="None"
                           Visibility="Collapsed"/>
                </Grid>
                <TextBlock Grid.Row="1"
                           x:Name="_ringId_"
                           Padding="1"
                           HorizontalAlignment="Center"
                           IsTextSelectionEnabled="True"
                           Style="{StaticResource TextStyle4}"/>
            </Grid>
Nicolas Jager's avatar
Nicolas Jager committed
90
        </StackPanel>
91
    </Grid>
Nicolas Jager's avatar
Nicolas Jager committed
92

Nicolas Jager's avatar
Nicolas Jager committed
93

Nicolas Jager's avatar
Nicolas Jager committed
94
</Page>