aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Modules/Tango.FSE.Upgrade/Views/MainView.xaml
blob: 26a3560c2cd0bf90581b4857b9ffaffc83debf59 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<UserControl x:Class="Tango.FSE.Upgrade.Views.MainView"
             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:global="clr-namespace:Tango.FSE.Upgrade"
             xmlns:vm="clr-namespace:Tango.FSE.Upgrade.ViewModels"
             xmlns:local="clr-namespace:Tango.FSE.Upgrade.Views"
             xmlns:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MainViewVM}" Background="{StaticResource FSE_PrimaryBackgroundBrush}" Foreground="{StaticResource FSE_PrimaryForegroundBrush}">

    <UserControl.Resources>
        <Style TargetType="TextBlock">
            <Setter Property="Foreground" Value="{StaticResource FSE_PrimaryForegroundBrush}"></Setter>
            <Style.Triggers>
                <Trigger Property="IsEnabled" Value="False">
                    <Setter Property="Foreground" Value="{StaticResource FSE_GrayBrush}"></Setter>
                </Trigger>
            </Style.Triggers>
        </Style>
    </UserControl.Resources>

    <Grid>
        <Image Source="../Images/machine-update_gray.png" HorizontalAlignment="Right" VerticalAlignment="Top" Stretch="Uniform" Width="800" Margin="80" Opacity="0.1" Visibility="{Binding ResolutionService.IsHighResolution,Converter={StaticResource BooleanToVisibilityConverter}}"></Image>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.5*" />
                <ColumnDefinition Width="10*" />
                <ColumnDefinition Width="1*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="0.5*" />
                <RowDefinition Height="7*" />
                <RowDefinition Height="0*" />
            </Grid.RowDefinitions>

            <Grid Grid.Column="1" Grid.Row="1">
                <Grid.Style>
                    <Style TargetType="Grid">
                        <Setter Property="Margin" Value="30 30 0 100"></Setter>
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding ResolutionService.IsLowResolution}" Value="True">
                                <Setter Property="Margin" Value="10"></Setter>
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </Grid.Style>
                <DockPanel>
                    <DockPanel DockPanel.Dock="Top">
                        <Image Source="../Images/remote_upgrade_large.png" Stretch="Uniform" VerticalAlignment="Top" Width="60" RenderOptions.BitmapScalingMode="Fant" />
                        <StackPanel Margin="20 0 0 0">
                            <TextBlock FontSize="{StaticResource FSE_ModuleHeaderFontSize}" Foreground="{StaticResource FSE_PrimaryAccentBrush}">Remote Upgrade Wizard</TextBlock>
                            <TextBlock Margin="0 10 0 0" Foreground="{StaticResource FSE_GrayBrush}">
                            <Run>Welcome to the remote upgrade wizard.</Run>
                            <LineBreak/>
                            <Run>This wizard will help you perform various application and firmware version upgrade operations.</Run>
                            </TextBlock>
                        </StackPanel>
                    </DockPanel>
                    <controls:NavigationControl x:Name="navigationControl" Margin="0 60 0 0" TransitionAlwaysFades="False" TransitionDuration="00:00:0.2" TransitionType="Slide">
                        <local:WelcomeView/>
                        <local:ApplicationUpgradeView/>
                        <local:FirmwareUpgradeView/>
                        <local:ApplicationUpgradeGeneratedView/>
                        <local:FirmwareUpgradeGeneratedView/>
                    </controls:NavigationControl>
                </DockPanel>
            </Grid>
        </Grid>
    </Grid>
</UserControl>