blob: 83fa278ee24e2d080b9feabe8b0d2eb34f10334e (
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
|
<UserControl x:Class="Tango.FSE.Upgrade.Views.WelcomeView"
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:autoComplete="clr-namespace:Tango.AutoComplete.Editors;assembly=Tango.AutoComplete"
xmlns:vm="clr-namespace:Tango.FSE.Upgrade.ViewModels"
xmlns:material="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:local="clr-namespace:Tango.FSE.Upgrade.Views"
mc:Ignorable="d"
d:DesignHeight="720" d:DesignWidth="1280" d:DataContext="{d:DesignInstance Type=vm:WelcomeViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.WelcomeViewVM}" Foreground="{StaticResource FSE_PrimaryForegroundBrush}">
<Grid>
<StackPanel>
<StackPanel>
<TextBlock Foreground="{StaticResource FSE_GrayBrush}" FontSize="{StaticResource FSE_LargeFontSize}">Please select the desired upgrade operation and press 'continue'.</TextBlock>
<StackPanel Margin="0 40 0 0">
<RadioButton x:Name="chkApplication" VerticalContentAlignment="Center" Cursor="Hand" Padding="30 0 0 0" IsChecked="{Binding IsApplicationUpdate,Mode=TwoWay}">
<DockPanel>
<Image Source="../Images/application.png" Width="64" Height="64" />
<TextBlock Margin="20 0 0 0" VerticalAlignment="Center">I want to upgrade a machine's application and firmware versions. (recommended)</TextBlock>
</DockPanel>
</RadioButton>
<StackPanel Margin="80 10 0 0" IsEnabled="{Binding ElementName=chkApplication,Path=IsChecked}">
<TextBlock>Please specify the target machine for this upgrade.</TextBlock>
<RadioButton x:Name="chkCurrentMachine" IsEnabled="{Binding MachineProvider.IsConnected}" Margin="10 20 0 0" IsChecked="{Binding IsUpdateConnectedMachine,Mode=TwoWay}">Upgrade the currently connected machine.</RadioButton>
<RadioButton x:Name="chkDifferentMachine" Margin="10 10 0 0" IsChecked="{Binding ElementName=chkCurrentMachine,Path=IsChecked,Converter={StaticResource BooleanInverseConverter},Mode=TwoWay}">Upgrade a different machine.</RadioButton>
<DockPanel Margin="20 10 0 0" IsEnabled="{Binding ElementName=chkDifferentMachine,Path=IsChecked}">
<autoComplete:AutoCompleteTextBox HorizontalAlignment="Left" Width="440" Margin="5 0 0 0" MaxPopupHeight="300" Provider="{Binding MachinesAutoCompleteProvider}" SelectedItem="{Binding SelectedMachine,Mode=TwoWay}" Style="{StaticResource FSE_AutoComplete_Machines}"></autoComplete:AutoCompleteTextBox>
</DockPanel>
</StackPanel>
<RadioButton IsChecked="{Binding ElementName=chkApplication,Path=IsChecked,Converter={StaticResource BooleanInverseConverter},Mode=TwoWay}" Margin="0 40 0 0" VerticalContentAlignment="Center" Cursor="Hand" Padding="25 0 0 0">
<DockPanel>
<Image Source="../Images/firmware.png" Width="64" Height="64" />
<TextBlock Margin="20 0 0 0" VerticalAlignment="Center">I want to upgrade a machine's firmware version.</TextBlock>
</DockPanel>
</RadioButton>
</StackPanel>
</StackPanel>
</StackPanel>
<StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="1000">
<Button material:ButtonAssist.CornerRadius="25" Command="{Binding StartUpgradeCommand}" DockPanel.Dock="Right" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="250" Height="50">
<StackPanel Orientation="Horizontal">
<TextBlock VerticalAlignment="Center" FontSize="{StaticResource FSE_LargeFontSize}">CONTINUE</TextBlock>
<material:PackIcon Margin="10 -5 0 0" Width="32" Height="28" Kind="ArrowRight" />
</StackPanel>
</Button>
<Rectangle StrokeThickness="1" Stroke="{StaticResource FSE_GrayBrush}" StrokeDashArray="4" Width="1000" Margin="0 10 0 0"></Rectangle>
</StackPanel>
</Grid>
</UserControl>
|