PgInitparam.xaml 29.1 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1
<Page x:Class="FLY.Thick.Base.UI.PgInitparam"
潘栩锋's avatar
潘栩锋 committed
2 3 4 5
      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" 
潘栩锋's avatar
潘栩锋 committed
6
      xmlns:local="clr-namespace:FLY.Thick.Base.UI"   
潘栩锋's avatar
潘栩锋 committed
7
      xmlns:common="clr-namespace:FLY.Thick.Base.Common;assembly=FLY.Thick.Base"
8 9
      xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" 
      xmlns:conv="clr-namespace:FLY.Thick.Base.UI.Converter"
潘栩锋's avatar
潘栩锋 committed
10
      mc:Ignorable="d" 
11
      d:DesignWidth="1280"
潘栩锋's avatar
潘栩锋 committed
12
	Title="Page_Initparam"
潘栩锋's avatar
潘栩锋 committed
13
      d:DataContext="{d:DesignInstance local:PgInitParamVm}">
潘栩锋's avatar
潘栩锋 committed
14 15 16
    <Page.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
17
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Converter/Converters.xaml"/>
潘栩锋's avatar
潘栩锋 committed
18
            </ResourceDictionary.MergedDictionaries>
19 20
            <conv:OutSpeed2mpminConverter x:Key="outsp2mpminconv" />
            <conv:Pos2mmConverter x:Key="p2mmconv" />
潘栩锋's avatar
潘栩锋 committed
21 22
        </ResourceDictionary>
    </Page.Resources>
23
    <Grid Background="{StaticResource Brushes.Card.Background}">
潘栩锋's avatar
潘栩锋 committed
24 25
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
潘栩锋's avatar
潘栩锋 committed
26
            <RowDefinition />
潘栩锋's avatar
潘栩锋 committed
27
        </Grid.RowDefinitions>
28
        <StackPanel Orientation="Horizontal" Background="{StaticResource Brushes.TitleBar.Background}">
29 30 31
            <Button Style="{StaticResource Styles.TitleBar.BackButton2}" Command="BrowseBack"  >
                <iconPacks:PackIconMaterial Kind="ArrowLeftThick" />
            </Button>
32
            <TextBlock Style="{StaticResource Styles.TitleBar.Text}" Text="{StaticResource str.PgInitparam.Title}"/>
潘栩锋's avatar
潘栩锋 committed
33
        </StackPanel>
34 35 36 37 38
        <ScrollViewer CanContentScroll="False" PanningMode="Both" Grid.Row="1" >
            <StackPanel Margin="{StaticResource ControlMargin}">
                <Border Style="{StaticResource Styles.Card.Border}">
                    <StackPanel>
                        <TextBlock Style="{StaticResource Styles.Card.Title}"
39
                                   Text="{StaticResource str.PgInitparam.Param}"/>
40
                        <StackPanel >
41
                            <StackPanel Orientation="Horizontal">
潘栩锋's avatar
潘栩锋 committed
42

43
                                <StackPanel  Margin="{StaticResource ControlMargin}">
44
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.AutoOrgInterval}" />
45 46 47 48
                                    <StackPanel Orientation="Horizontal">
                                        <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding AutoOrgInterval}" />
                                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="min" />
                                    </StackPanel>
潘栩锋's avatar
潘栩锋 committed
49
                                </StackPanel>
50
                                <StackPanel  Margin="{StaticResource ControlMargin}">
51
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.PosLength}" />
52 53
                                    <StackPanel Orientation="Horizontal">
                                        <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding PosLength}" />
潘栩锋's avatar
潘栩锋 committed
54
                                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Separator}"/>
55
                                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" >
潘栩锋's avatar
潘栩锋 committed
56 57 58 59 60 61 62
                            <Run>
                                <MultiBinding Converter="{StaticResource p2mmconv}" Mode="OneWay" StringFormat="{}{0:F0}">
                                    <Binding Path="PosLength" />
                                    <Binding Path="Encoder1_mmpp"/>
                                </MultiBinding>
                            </Run>
                            <Run Text="mm"/>
63 64
                                        </TextBlock>
                                    </StackPanel>
潘栩锋's avatar
潘栩锋 committed
65

潘栩锋's avatar
潘栩锋 committed
66
                                </StackPanel>
67
                                <StackPanel  Margin="{StaticResource ControlMargin}">
68
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.mmpp1}" />
69 70
                                    <StackPanel Orientation="Horizontal">
                                        <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding Encoder1_mmpp}" HorizontalAlignment="Left"/>
71 72 73
                                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" >
                                            mm/<Run Text="{StaticResource str.PgInitparam.Pulse}"/>
                                        </TextBlock>
74
                                    </StackPanel>
潘栩锋's avatar
潘栩锋 committed
75

潘栩锋's avatar
潘栩锋 committed
76
                                </StackPanel>
潘栩锋's avatar
潘栩锋 committed
77
                                <StackPanel  Margin="{StaticResource ControlMargin}">
78
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.IsTimeGridAdvEnabled}" />
79 80 81 82
                                    <ToggleButton Style="{StaticResource Styles.ToggleButton.YESNO}" IsChecked="{Binding IsTimeGridAdvEnabled}"/>
                                </StackPanel>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal">
潘栩锋's avatar
潘栩锋 committed
83
                                <StackPanel  Margin="{StaticResource ControlMargin}">
84 85 86 87 88 89 90 91 92
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.FilmVSrc}" />
                                    <ComboBox Width="100" MinHeight="{StaticResource FontSize.FieldContent.Middle}" HorizontalAlignment="Left">
                                        <ComboBox.Resources>
                                            <Style TargetType="TextBlock" BasedOn="{StaticResource Styles.Text.FieldContent}">
                                                <Setter Property="FontSize" Value="{StaticResource FontSize.FieldContent.Middle}"/>
                                            </Style>
                                        </ComboBox.Resources>
                                        <ComboBoxItem IsSelected="{Binding FilmVSrc, Converter={StaticResource e2bconv}, ConverterParameter={x:Static common:FilmVSRC.EN2}}" >
                                            <TextBlock Text="{StaticResource str.PgInitparam.Encoder2}"/>
93
                                        </ComboBoxItem>
94 95
                                        <ComboBoxItem IsSelected="{Binding FilmVSrc, Converter={StaticResource e2bconv}, ConverterParameter={x:Static common:FilmVSRC.ROUND}}">
                                            <TextBlock Text="{StaticResource str.PgInitparam.Roller}"/>
96 97 98 99 100
                                        </ComboBoxItem>
                                    </ComboBox>
                                </StackPanel>
                                <StackPanel Orientation="Horizontal" Visibility="{Binding IsSelected,Converter={StaticResource visbilityconv},ConverterParameter=Collapsed, ElementName=comboBoxotem_EN2}">
                                    <StackPanel  Margin="{StaticResource ControlMargin}">
101
                                        <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.mmpp2}" />
102
                                        <StackPanel Orientation="Horizontal">
103
                                            <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding Encoder2_mmpp,StringFormat={}{0:F5}}"  HorizontalAlignment="Left"/>
104
                                            <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" >
105
                                            mm/<Run Text="{StaticResource str.PgInitparam.Pulse}"/>
106 107 108
                                            </TextBlock>
                                        </StackPanel>
                                    </StackPanel>
潘栩锋's avatar
潘栩锋 committed
109
                                </StackPanel>
110
                                <StackPanel Orientation="Horizontal" Visibility="{Binding IsSelected,Converter={StaticResource visbilityconv},ConverterParameter=Collapsed, ElementName=comboBoxotem_ROUND}">
潘栩锋's avatar
潘栩锋 committed
111

112
                                    <StackPanel  Margin="{StaticResource ControlMargin}">
113
                                        <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.MmOfR}" />
114 115 116 117
                                        <StackPanel Orientation="Horizontal">
                                            <TextBox HorizontalAlignment="Left" MaxWidth="150" Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding MmOfR,StringFormat={}{0:F1}}" />
                                            <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="mm" />
                                        </StackPanel>
潘栩锋's avatar
潘栩锋 committed
118 119
                                    </StackPanel>
                                </StackPanel>
120
                                <StackPanel  Margin="{StaticResource ControlMargin}">
121
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.FilmVThreshold}" />
122 123 124
                                    <StackPanel Orientation="Horizontal">
                                        <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding FilmVThreshold}"  HorizontalAlignment="Left"/>
                                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" >
潘栩锋's avatar
潘栩锋 committed
125
                                            <Run Text="m/min"/>
126 127
                                        </TextBlock>
                                    </StackPanel>
潘栩锋's avatar
潘栩锋 committed
128 129 130
                                </StackPanel>

                            </StackPanel>
131 132
                            <StackPanel Orientation="Horizontal">
                                <StackPanel  Margin="{StaticResource ControlMargin}">
133 134 135 136 137 138 139 140 141
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.DataValidSrc}" />
                                    <ComboBox Width="100" MinHeight="{StaticResource FontSize.FieldContent.Middle}" HorizontalAlignment="Left">
                                        <ComboBox.Resources>
                                            <Style TargetType="TextBlock" BasedOn="{StaticResource Styles.Text.FieldContent}">
                                                <Setter Property="FontSize" Value="{StaticResource FontSize.FieldContent.Middle}"/>
                                            </Style>
                                        </ComboBox.Resources>
                                        <ComboBoxItem IsSelected="{Binding DataValidSrc, Converter={StaticResource e2bconv}, ConverterParameter={x:Static common:DATAVALIDSRC.BYEN2}}">
                                            <TextBlock Text="{StaticResource str.PgInitparam.FilmVelocity}"/>
142
                                        </ComboBoxItem>
143 144
                                        <ComboBoxItem  IsSelected="{Binding DataValidSrc, Converter={StaticResource e2bconv}, ConverterParameter={x:Static common:DATAVALIDSRC.BYINPUT}}">
                                            <TextBlock Text="{StaticResource str.PgInitparam.Input}"/>
145
                                        </ComboBoxItem>
146 147
                                        <ComboBoxItem  IsSelected="{Binding DataValidSrc, Converter={StaticResource e2bconv}, ConverterParameter={x:Static common:DATAVALIDSRC.VALID}}" >
                                            <TextBlock Text="{StaticResource str.PgInitparam.VALID}"/>
148
                                        </ComboBoxItem>
149 150
                                        <ComboBoxItem  IsSelected="{Binding DataValidSrc, Converter={StaticResource e2bconv}, ConverterParameter={x:Static common:DATAVALIDSRC.INVALID}}">
                                            <TextBlock Text="{StaticResource str.PgInitparam.INVALID}"/>
151 152 153
                                        </ComboBoxItem>
                                    </ComboBox>
                                </StackPanel>
潘栩锋's avatar
潘栩锋 committed
154
                                <StackPanel Orientation="Horizontal">
155
                                    <StackPanel  Margin="{StaticResource ControlMargin}">
156
                                        <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable.Row2}" Text="{StaticResource str.PgInitparam.AutoF1F3}" />
157 158 159
                                        <ToggleButton Style="{StaticResource Styles.ToggleButton.YESNO}" IsChecked="{Binding AutoF1F3}" HorizontalAlignment="Left"/>
                                    </StackPanel>
                                    <StackPanel  Margin="{StaticResource ControlMargin}">
160
                                        <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable.Row2}" Text="{StaticResource str.PgInitparam.ReStartDelay}" />
161 162 163 164 165
                                        <StackPanel Orientation="Horizontal">
                                            <TextBox HorizontalAlignment="Left" MaxWidth="150" Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding ReStartDelay}" />
                                            <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="s" />
                                        </StackPanel>
                                    </StackPanel>
潘栩锋's avatar
潘栩锋 committed
166
                                </StackPanel>
167

潘栩锋's avatar
潘栩锋 committed
168
                            </StackPanel>
潘栩锋's avatar
潘栩锋 committed
169

潘栩锋's avatar
潘栩锋 committed
170
                        </StackPanel>
潘栩锋's avatar
潘栩锋 committed
171
                    </StackPanel>
172
                </Border>
潘栩锋's avatar
潘栩锋 committed
173

174 175 176
                <Border Style="{StaticResource Styles.Card.Border}">
                    <StackPanel>
                        <TextBlock Style="{StaticResource Styles.Card.Title}"
177
                                   Text="{StaticResource str.PgInitparam.Velocity}"/>
178 179 180
                        <WrapPanel Grid.Column="1" Orientation="Horizontal">
                            <StackPanel Orientation="Horizontal">
                                <StackPanel  Margin="{StaticResource ControlMargin}">
181
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.VScan}" />
182 183
                                    <StackPanel Orientation="Horizontal">
                                        <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding VScan}" HorizontalAlignment="Left"/>
潘栩锋's avatar
潘栩锋 committed
184
                                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Separator}" />
185
                                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" >
潘栩锋's avatar
潘栩锋 committed
186 187 188 189 190 191 192 193 194
                                <Run>
                                    <MultiBinding Converter="{StaticResource outsp2mpminconv}" Mode="OneWay" StringFormat="{}{0:F1}">
                                            <Binding Path="VScan" />
                                            <Binding Path="Encoder1_mmpp" />
                                            <Binding Path="Speed1Scale" />
                                        </MultiBinding>
                                </Run>
                                    
                                <Run Text="m/min" />
195 196
                                        </TextBlock>
                                    </StackPanel>
潘栩锋's avatar
潘栩锋 committed
197
                                </StackPanel>
198
                                <StackPanel  Margin="{StaticResource ControlMargin}">
199
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.VAccuracy}" />
200 201
                                    <StackPanel Orientation="Horizontal">
                                        <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding VAccuracy}" />
潘栩锋's avatar
潘栩锋 committed
202
                                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Separator}" />
203
                                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" >
潘栩锋's avatar
潘栩锋 committed
204 205 206 207 208 209 210 211
                                <Run>
                                    <MultiBinding Converter="{StaticResource outsp2mpminconv}" Mode="OneWay" StringFormat="{}{0:F1}">
                                            <Binding Path="VAccuracy" />
                                            <Binding Path="Encoder1_mmpp" />
                                            <Binding Path="Speed1Scale" />
                                        </MultiBinding>
                                </Run>
                                <Run Text="m/min" />
212 213
                                        </TextBlock>
                                    </StackPanel>
潘栩锋's avatar
潘栩锋 committed
214
                                </StackPanel>
215
                                <StackPanel  Margin="{StaticResource ControlMargin}">
216
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.VJOG}" />
217 218
                                    <StackPanel Orientation="Horizontal">
                                        <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding VJOG}" />
潘栩锋's avatar
潘栩锋 committed
219
                                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Separator}" />
220
                                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" >
221 222 223 224 225 226 227 228
                                        <Run>
                                            <MultiBinding Converter="{StaticResource outsp2mpminconv}" Mode="OneWay" StringFormat="{}{0:F1}">
                                                    <Binding Path="VJOG" />
                                                    <Binding Path="Encoder1_mmpp" />
                                                    <Binding Path="Speed1Scale" />
                                                </MultiBinding>
                                        </Run>
                                        <Run Text="m/min" />
229 230
                                        </TextBlock>
                                    </StackPanel>
潘栩锋's avatar
潘栩锋 committed
231 232 233 234
                                </StackPanel>
                            </StackPanel>


235
                            <StackPanel  Margin="{StaticResource ControlMargin}">
236
                                <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.SVelocity}" />
237 238
                                <StackPanel Orientation="Horizontal">
                                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding SVelocity}" />
潘栩锋's avatar
潘栩锋 committed
239
                                    <TextBlock Style="{StaticResource Styles.Text.FieldContent.Separator}" />
240
                                    <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" >
潘栩锋's avatar
潘栩锋 committed
241 242 243 244 245 246 247 248
                                <Run >
                                    <MultiBinding Converter="{StaticResource outsp2mpminconv}" Mode="OneWay" StringFormat="{}{0:F1}">
                                            <Binding Path="SVelocity" />
                                            <Binding Path="Encoder1_mmpp" />
                                            <Binding Path="Speed1Scale" />
                                        </MultiBinding>
                                </Run>
                                <Run Text="m/min" />
249 250
                                    </TextBlock>
                                </StackPanel>
潘栩锋's avatar
潘栩锋 committed
251 252
                            </StackPanel>

253
                            <StackPanel  Margin="{StaticResource ControlMargin}">
254
                                <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.HV1}" />
255 256
                                <StackPanel Orientation="Horizontal">
                                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding HVelocity1}" />
潘栩锋's avatar
潘栩锋 committed
257
                                    <TextBlock Style="{StaticResource Styles.Text.FieldContent.Separator}" />
258
                                    <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" >
潘栩锋's avatar
潘栩锋 committed
259 260 261 262 263 264 265 266
                                <Run >
                                                                            <MultiBinding Converter="{StaticResource outsp2mpminconv}" Mode="OneWay" StringFormat="{}{0:F1}">
                                            <Binding Path="HVelocity1" />
                                            <Binding Path="Encoder1_mmpp" />
                                            <Binding Path="Speed1Scale" />
                                        </MultiBinding>
                                </Run>
                                <Run Text="m/min" />
267 268
                                    </TextBlock>
                                </StackPanel>
潘栩锋's avatar
潘栩锋 committed
269
                            </StackPanel>
270
                            <StackPanel  Margin="{StaticResource ControlMargin}">
271
                                <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.HV2}" />
272 273
                                <StackPanel Orientation="Horizontal">
                                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding HVelocity2}" />
潘栩锋's avatar
潘栩锋 committed
274
                                    <TextBlock Style="{StaticResource Styles.Text.FieldContent.Separator}" />
275
                                    <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" >
潘栩锋's avatar
潘栩锋 committed
276 277 278 279 280 281 282 283
                                <Run >
                                    <MultiBinding Converter="{StaticResource outsp2mpminconv}" Mode="OneWay" StringFormat="{}{0:F1}">
                                            <Binding Path="HVelocity2" />
                                            <Binding Path="Encoder1_mmpp" />
                                            <Binding Path="Speed1Scale" />
                                        </MultiBinding>
                                </Run>
                                <Run Text="m/min" />
284 285
                                    </TextBlock>
                                </StackPanel>
潘栩锋's avatar
潘栩锋 committed
286 287
                            </StackPanel>

288
                            <StackPanel  Margin="{StaticResource ControlMargin}">
289
                                <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.ATime}" />
290 291 292
                                <StackPanel Orientation="Horizontal">
                                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding ATime}" />
                                    <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" >
潘栩锋's avatar
潘栩锋 committed
293
                                <Run Text="ms" />
294 295
                                    </TextBlock>
                                </StackPanel>
潘栩锋's avatar
潘栩锋 committed
296
                            </StackPanel>
297
                            <StackPanel  Margin="{StaticResource ControlMargin}">
298 299
                                <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.DTime
                                    }" />
300 301 302
                                <StackPanel Orientation="Horizontal">
                                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding DTime}" />
                                    <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" >
潘栩锋's avatar
潘栩锋 committed
303
                                <Run Text="ms" />
304 305 306 307 308 309 310 311 312 313
                                    </TextBlock>
                                </StackPanel>
                            </StackPanel>

                        </WrapPanel>
                    </StackPanel>
                </Border>
                <Border Style="{StaticResource Styles.Card.Border}">
                    <StackPanel>
                        <TextBlock Style="{StaticResource Styles.Card.Title}"
314
                                   Text="{StaticResource str.PgInitparam.Hardware}"/>
潘栩锋's avatar
潘栩锋 committed
315 316 317
                        <WrapPanel Orientation="Horizontal">
                            <StackPanel Orientation="Horizontal">
                                <StackPanel  Margin="{StaticResource ControlMargin}">
318
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="{StaticResource str.PgInitparam.Punch}" />
潘栩锋's avatar
潘栩锋 committed
319 320 321 322
                                    <ToggleButton Style="{StaticResource Styles.ToggleButton.YESNO}" HorizontalAlignment="Left"
                                              IsChecked="{Binding HasPunch}" />
                                </StackPanel>
                                <StackPanel  Margin="{StaticResource ControlMargin}" Visibility="{Binding HasPunch,Converter={StaticResource visbilityconv}}">
323
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable.Row2}" Text="{StaticResource str.PgInitparam.PunchOffset}" />
潘栩锋's avatar
潘栩锋 committed
324 325 326 327 328 329
                                    <StackPanel Orientation="Horizontal">
                                        <TextBox HorizontalAlignment="Left" MaxWidth="150" Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding PunchOffset}" />
                                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="mm" />
                                    </StackPanel>
                                </StackPanel>
                            </StackPanel>
330 331
                            <StackPanel Orientation="Horizontal">
                                <StackPanel  Margin="{StaticResource ControlMargin}">
332
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable.Row2}" Text="{StaticResource str.PgInitparam.HasProfileSample}" />
333 334 335 336
                                    <ToggleButton Style="{StaticResource Styles.ToggleButton.YESNO}" HorizontalAlignment="Left"
                                              IsChecked="{Binding HasProfileSample}" />
                                </StackPanel>
                            </StackPanel>
潘栩锋's avatar
潘栩锋 committed
337
                            
338 339
                            <StackPanel Orientation="Horizontal">
                                <StackPanel  Margin="{StaticResource ControlMargin}">
340
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable.Row2}" Text="{StaticResource str.PgInitparam.HasVSign}" />
341
                                    <ToggleButton Style="{StaticResource Styles.ToggleButton.YESNO}" HorizontalAlignment="Left"
潘栩锋's avatar
潘栩锋 committed
342
                                              IsChecked="{Binding HasVSign}" />
343
                                </StackPanel>
潘栩锋's avatar
潘栩锋 committed
344
                                <StackPanel  Margin="{StaticResource ControlMargin}" Visibility="{Binding HasVSign,Converter={StaticResource visbilityconv}}">
345
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable.Row2}" Text="{StaticResource str.PgInitparam.VSignOffset}" />
346
                                    <StackPanel Orientation="Horizontal">
潘栩锋's avatar
潘栩锋 committed
347
                                        <TextBox HorizontalAlignment="Left" MaxWidth="150" Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding VSignOffset}" />
348 349 350
                                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="mm" />
                                    </StackPanel>
                                </StackPanel>
潘栩锋's avatar
潘栩锋 committed
351
                            </StackPanel>
潘栩锋's avatar
潘栩锋 committed
352 353
                            <StackPanel Orientation="Horizontal">
                                <StackPanel  Margin="{StaticResource ControlMargin}">
354
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable.Row2}" Text="{StaticResource str.PgInitparam.HasHSign}" />
潘栩锋's avatar
潘栩锋 committed
355 356 357 358 359 360
                                    <ToggleButton Style="{StaticResource Styles.ToggleButton.YESNO}" HorizontalAlignment="Left"
                                              IsChecked="{Binding HasHSign}" />
                                </StackPanel>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal">
                                <StackPanel  Margin="{StaticResource ControlMargin}">
361
                                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable.Row2}" Text="{StaticResource str.PgInitparam.HasScanCorr}" />
潘栩锋's avatar
潘栩锋 committed
362 363 364 365 366
                                    <ToggleButton Style="{StaticResource Styles.ToggleButton.YESNO}" HorizontalAlignment="Left"
                                              IsChecked="{Binding HasScanCorr}" />
                                </StackPanel>
                            </StackPanel>
                        </WrapPanel>
潘栩锋's avatar
潘栩锋 committed
367

368 369
                    </StackPanel>
                </Border>
潘栩锋's avatar
潘栩锋 committed
370 371 372

            </StackPanel>
        </ScrollViewer>
373
        <Button Style="{StaticResource Styles.Button.Apply}" VerticalAlignment="Bottom" Margin="0,0,20,20" 
潘栩锋's avatar
潘栩锋 committed
374
                    Command="{Binding ApplyCmd}"/>
潘栩锋's avatar
潘栩锋 committed
375 376
    </Grid>
</Page>