blob: e3ba1bff487fc78179661914be64aad0ca3fd973 (
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.MachineStudio.MachineDesigner.Views.MachineCreationDialog"
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:mahapps="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:vm="clr-namespace:Tango.MachineStudio.MachineDesigner.ViewModels"
xmlns:local="clr-namespace:Tango.MachineStudio.MachineDesigner.Views"
mc:Ignorable="d"
d:DesignHeight="400" d:DesignWidth="700" Height="400" Width="700" Background="White" d:DataContext="{d:DesignInstance Type=vm:MachineCreationDialogVM, IsDesignTimeCreatable=False}">
<Grid Margin="10">
<DockPanel>
<Grid DockPanel.Dock="Top">
<StackPanel Orientation="Horizontal">
<Grid>
<Image Source="../Images/machine-full-fx.png" Width="120" RenderOptions.BitmapScalingMode="Fant"></Image>
<materialDesign:PackIcon HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0 0 -10 -10" Kind="PlusCircle" Foreground="#15C315" Width="42" Height="42" />
</Grid>
<TextBlock Margin="30 0 0 0" VerticalAlignment="Bottom" FontSize="22">NEW MACHINE</TextBlock>
</StackPanel>
</Grid>
<Grid DockPanel.Dock="Bottom">
<StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Right" DockPanel.Dock="Bottom">
<Button Command="{Binding CloseCommand}" Width="140" Height="40" Margin="0 0 10 0">
CANCEL
</Button>
<Button Command="{Binding OKCommand}" IsDefault="True" Width="140" Height="40">
CREATE
</Button>
</StackPanel>
</Grid>
<Grid>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Width="400">
<TextBlock TextWrapping="Wrap" TextAlignment="Center">
<Run>Please specify the machine version in order to prototype the new machine with default machine settings and configuartion.</Run>
</TextBlock>
<ComboBox ItemsSource="{Binding MachineVersions}" SelectedItem="{Binding SelectedMachineVersion}" DisplayMemberPath="Name" Margin="0 10 0 0" FontSize="16" materialDesign:HintAssist.Hint="NONE"></ComboBox>
</StackPanel>
</Grid>
</DockPanel>
</Grid>
</UserControl>
|