RobotConfigAddOrEditView.xaml
6.44 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<Window
x:Class="HHECS.RobotTool.View.RobotConfigView.RobotConfigAddOrEditView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:hc="https://handyorg.github.io/handycontrol"
xmlns:local="clr-namespace:HHECS.RobotTool.View.RobotConfigView"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:viewmodel="clr-namespace:HHECS.RobotTool.ViewModel.RobotConfigVM"
Title="新增基础配置"
Width="280"
Height="430"
d:DataContext="{d:DesignInstance Type=viewmodel:RobotConfigAddOrEditVM}"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="40" />
</Grid.RowDefinitions>
<hc:UniformSpacingPanel
HorizontalAlignment="Center"
ChildWrapping="Wrap"
Spacing="10">
<hc:ElementGroup
Height="30"
VerticalAlignment="Center"
Layout="Stack">
<Border Padding="6,0" Style="{StaticResource BorderRegion}">
<TextBlock VerticalAlignment="Center" Text="编号" />
</Border>
<TextBox MinWidth="200" Text="{Binding RobotConfig.Code, UpdateSourceTrigger=PropertyChanged}" />
</hc:ElementGroup>
<hc:ElementGroup
Height="30"
VerticalAlignment="Center"
Layout="Stack">
<Border Padding="6,0" Style="{StaticResource BorderRegion}">
<TextBlock VerticalAlignment="Center" Text="名称" />
</Border>
<TextBox MinWidth="200" Text="{Binding RobotConfig.Name, UpdateSourceTrigger=PropertyChanged}" />
</hc:ElementGroup>
<hc:ElementGroup
Height="30"
VerticalAlignment="Center"
Layout="Stack">
<Border Padding="6,0" Style="{StaticResource BorderRegion}">
<TextBlock VerticalAlignment="Center" Text="坡口预留间隙(mm)" />
</Border>
<TextBox MinWidth="123" Text="{Binding RobotConfig.ReservedGap, UpdateSourceTrigger=PropertyChanged}" />
</hc:ElementGroup>
<hc:ElementGroup
Height="30"
VerticalAlignment="Center"
Layout="Stack">
<Border Padding="6,0" Style="{StaticResource BorderRegion}">
<TextBlock VerticalAlignment="Center" Text="盖面后单边所需增加余宽(mm)" />
</Border>
<TextBox
MinWidth="60"
HorizontalAlignment="Stretch"
Text="{Binding RobotConfig.WeldWidth, UpdateSourceTrigger=PropertyChanged}" />
</hc:ElementGroup>
<hc:ElementGroup
Height="30"
VerticalAlignment="Center"
Layout="Stack">
<Border Padding="6,0" Style="{StaticResource BorderRegion}">
<TextBlock VerticalAlignment="Center" Text="坡口钝边大小(mm)" />
</Border>
<TextBox
MinWidth="123"
HorizontalAlignment="Stretch"
Text="{Binding RobotConfig.BluntEdgeSize, UpdateSourceTrigger=PropertyChanged}" />
</hc:ElementGroup>
<hc:ElementGroup
Height="30"
VerticalAlignment="Center"
Layout="Stack">
<Border Padding="6,0" Style="{StaticResource BorderRegion}">
<TextBlock VerticalAlignment="Center" Text="盖面后所需焊缝余高(mm)" />
</Border>
<TextBox
MinWidth="85"
HorizontalAlignment="Stretch"
Text="{Binding RobotConfig.WeldHeight, UpdateSourceTrigger=PropertyChanged}" />
</hc:ElementGroup>
<hc:ElementGroup
Height="30"
VerticalAlignment="Center"
Layout="Stack">
<Border Padding="6,0" Style="{StaticResource BorderRegion}">
<TextBlock VerticalAlignment="Center" Text="焊丝直径(mm)" />
</Border>
<TextBox
MinWidth="145"
HorizontalAlignment="Stretch"
Text="{Binding RobotConfig.WeldingWire, UpdateSourceTrigger=PropertyChanged}" />
</hc:ElementGroup>
<hc:ElementGroup
Height="30"
VerticalAlignment="Center"
Layout="Stack">
<Border Padding="6,0" Style="{StaticResource BorderRegion}">
<TextBlock VerticalAlignment="Center" Text="焊缝长度(mm)" />
</Border>
<TextBox
MinWidth="147"
HorizontalAlignment="Stretch"
Text="{Binding RobotConfig.WeldLength, UpdateSourceTrigger=PropertyChanged}" />
</hc:ElementGroup>
<hc:ElementGroup
Height="30"
VerticalAlignment="Center"
Layout="Stack">
<Border Padding="6,0" Style="{StaticResource BorderRegion}">
<TextBlock VerticalAlignment="Center" Text="备注" />
</Border>
<TextBox
MinWidth="200"
HorizontalAlignment="Stretch"
Text="{Binding RobotConfig.Remark, UpdateSourceTrigger=PropertyChanged}"
VerticalScrollBarVisibility="Auto" />
</hc:ElementGroup>
</hc:UniformSpacingPanel>
<hc:UniformSpacingPanel
Grid.Row="1"
HorizontalAlignment="Center"
Spacing="60">
<Button
hc:IconElement.Geometry="{StaticResource SaveGeometry}"
Command="{Binding SaveCommand}"
Content="保存"
Style="{StaticResource ButtonPrimary}" />
<Button
hc:IconElement.Geometry="{StaticResource CloseGeometry}"
Command="{Binding CancelCommand}"
Content="取消"
Style="{StaticResource ButtonDefault}" />
</hc:UniformSpacingPanel>
</Grid>
</Window>