aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.UI/Dialogs/ApplicationUpdateView.xaml
blob: 047b842e00995d689f65b3a82036e31ac02aad50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<UserControl x:Class="Tango.FSE.UI.Dialogs.ApplicationUpdateView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:material="http://materialdesigninxaml.net/winfx/xaml/themes"
             xmlns:local="clr-namespace:Tango.FSE.UI.Dialogs"
             mc:Ignorable="d" 
             Width="600" Height="600" d:DataContext="{d:DesignInstance Type=local:ApplicationUpdateViewVM, IsDesignTimeCreatable=False}" Background="{StaticResource FSE_PrimaryBackgroundLightBrush}" Foreground="{StaticResource FSE_PrimaryForegroundBrush}">
    <DockPanel Margin="10">

        <StackPanel DockPanel.Dock="Top" Orientation="Horizontal">
            <Image Source="/Images/application_update2.png" Width="42" Height="42" VerticalAlignment="Center" RenderOptions.BitmapScalingMode="Fant" />
            <TextBlock VerticalAlignment="Center" Margin="10 0 0 0" FontSize="{StaticResource FSE_LargeFontSize}">
                <Run Text="{Binding BuildProvider.BuildName,Mode=OneWay}"></Run>
                <Run>Update</Run>
            </TextBlock>
            <TextBlock Foreground="{StaticResource FSE_PrimaryAccentBrush}" Margin="10 0 0 0" VerticalAlignment="Center" FontSize="{StaticResource FSE_LargeFontSize}">
                <Run FontSize="{StaticResource FSE_SmallFontSize}">v</Run><Run Text="{Binding Version}"></Run>
            </TextBlock>
        </StackPanel>

        <Grid Margin="0 20 0 0" DockPanel.Dock="Top">
            <DockPanel>
                <StackPanel DockPanel.Dock="Top">

                    <TextBlock TextWrapping="Wrap">
                    <Run>An updated version of the application is available for download.</Run>
                    <LineBreak/>
                    <Run>Press 'download' to start downloading the new version.</Run>
                    </TextBlock>


                </StackPanel>

                <DockPanel Margin="0 20 0 0">
                    <DockPanel DockPanel.Dock="Top">
                        <material:PackIcon Kind="Comments" />
                        <TextBlock Margin="5 0 0 0" VerticalAlignment="Center" FontSize="{StaticResource FSE_SmallFontSize}">Release Notes</TextBlock>
                    </DockPanel>
                    <TextBox FontSize="{StaticResource FSE_SmallFontSize}" IsReadOnly="True" Foreground="{StaticResource FSE_GrayBrush}" TextWrapping="Wrap" Text="{Binding Comments,TargetNullValue='No release notes attached'}" Margin="0 2 0 0" Style="{StaticResource FSE_Rounded_Corners_TextBox_Multiline}" AcceptsReturn="True"></TextBox>
                </DockPanel>
            </DockPanel>
        </Grid>
    </DockPanel>
</UserControl>