blob: 6ab2414f3a5d61cfabae53082d384f52eaa2f528 (
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
|
<UserControl x:Class="Tango.FSE.UI.Dialogs.MachineConnectionUsbView"
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:autoComplete="clr-namespace:Tango.AutoComplete.Editors;assembly=Tango.AutoComplete"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:local="clr-namespace:Tango.FSE.UI.Dialogs"
mc:Ignorable="d"
Height="300" Width="700" d:DataContext="{d:DesignInstance Type=local:MachineConnectionUsbViewVM, IsDesignTimeCreatable=False}" Background="{StaticResource FSE_PrimaryBackgroundLightBrush}" Foreground="{StaticResource FSE_PrimaryForegroundBrush}">
<Grid>
<DockPanel Margin="10">
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Margin="10">
<ContentControl Height="60" Margin="-10 0 0 0" Style="{StaticResource FSE_UsbMachineIcon}"></ContentControl>
<TextBlock Text="Machine Selection" FontWeight="SemiBold" VerticalAlignment="Center" Margin="10 0 0 0" FontSize="{StaticResource FSE_MessageBoxTitleFontSize}"></TextBlock>
</StackPanel>
<TextBlock DockPanel.Dock="Top" TextWrapping="Wrap" Margin="0 10 0 0">
<Run>Connecting directly to a machine's embedded firmware requires the selection of an existing machine from the database.</Run>
<LineBreak/>
<LineBreak/>
<Run>Please select a 'virtual machine' by entering the machine serial number.</Run>
</TextBlock>
<StackPanel HorizontalAlignment="Left" VerticalAlignment="Center" Width="400">
<TextBlock Margin="25 0 0 0" Foreground="{StaticResource FSE_UsbBrush}">Virtualized Machine</TextBlock>
<autoComplete:AutoCompleteTextBox materialDesign:HintAssist.Hint="Serial Number" MaxPopupHeight="300" Margin="0 5 0 0" Provider="{Binding Machines}" SelectedItem="{Binding SelectedMachine,Mode=TwoWay}" DisplayMember="SerialNumber">
<autoComplete:AutoCompleteTextBox.SelectedItemTemplate>
<DataTemplate>
<DockPanel VerticalAlignment="Center">
<Image RenderOptions.BitmapScalingMode="Fant" Source="{StaticResource FSE_Machine_Small}" Width="24" />
<StackPanel VerticalAlignment="Center" Margin="10 0 0 0" Orientation="Horizontal">
<TextBlock Text="{Binding SerialNumber}" FontSize="{StaticResource FSE_SmallFontSize}"></TextBlock>
<TextBlock Margin="10 0 0 0" FontSize="{StaticResource FSE_SmallFontSize}" Foreground="{StaticResource FSE_GrayBrush}" Text="{Binding Name}"></TextBlock>
</StackPanel>
</DockPanel>
</DataTemplate>
</autoComplete:AutoCompleteTextBox.SelectedItemTemplate>
<autoComplete:AutoCompleteTextBox.ItemTemplate>
<DataTemplate>
<DockPanel VerticalAlignment="Center">
<Image RenderOptions.BitmapScalingMode="Fant" Source="{StaticResource FSE_Machine_Small}" Width="32" />
<StackPanel Margin="5 0 0 0">
<TextBlock Text="{Binding SerialNumber}"></TextBlock>
<TextBlock Margin="0 5 0 0" FontSize="{StaticResource FSE_SmallerFontSize}" Foreground="{StaticResource FSE_GrayBrush}" Text="{Binding Name}"></TextBlock>
</StackPanel>
</DockPanel>
</DataTemplate>
</autoComplete:AutoCompleteTextBox.ItemTemplate>
</autoComplete:AutoCompleteTextBox>
</StackPanel>
</DockPanel>
</Grid>
</UserControl>
|