|
311 | 311 | <ColumnDefinition Width="Auto" /> |
312 | 312 | <ColumnDefinition Width="*" /> |
313 | 313 | </Grid.ColumnDefinitions> |
314 | | - <Label Grid.Column="0" Name="XLabel" Target="{Binding ElementName=XTextBox,Mode=OneTime}" Content="X" /> |
| 314 | + <TextBlock Grid.Column="0" Name="XLabel" Text="X" Margin="0,0,5,0" /> |
315 | 315 | <local:DoubleUpDownControl Grid.Column="1" x:Name="XTextBox" Value="{Binding X}" IsEnabled="{Binding Property.CanWrite,Mode=OneTime}" AutomationProperties.LabeledBy="{Binding ElementName=XLabel,Mode=OneTime}"/> |
316 | | - <Label Grid.Column="2" Name="YLabel" Target="{Binding ElementName=YTextBox,Mode=OneTime}" Content="Y" /> |
| 316 | + <TextBlock Grid.Column="2" Name="YLabel" Text="Y" Margin="5,0,5,0" /> |
317 | 317 | <local:DoubleUpDownControl Grid.Column="3" x:Name="YTextBox" Value="{Binding Y}" IsEnabled="{Binding Property.CanWrite,Mode=OneTime}" AutomationProperties.LabeledBy="{Binding ElementName=YLabel,Mode=OneTime}" /> |
318 | 318 | </Grid> |
319 | 319 | </ControlTemplate> |
320 | 320 | </Setter.Value> |
321 | 321 | </Setter> |
322 | 322 | </Style> |
323 | 323 |
|
324 | | - <Style TargetType="local:SizeEditorControl"> |
325 | | - <Setter Property="Template"> |
326 | | - <Setter.Value> |
327 | | - <ControlTemplate TargetType="local:SizeEditorControl"> |
328 | | - <Grid> |
329 | | - <Grid.ColumnDefinitions> |
330 | | - <ColumnDefinition Width="Auto" /> |
331 | | - <ColumnDefinition Width="*" /> |
332 | | - <ColumnDefinition Width="Auto" /> |
333 | | - <ColumnDefinition Width="*" /> |
334 | | - </Grid.ColumnDefinitions> |
335 | | - <Label Grid.Column="0" Name="WidthLabel" Target="{Binding ElementName=WidthTextBox,Mode=OneTime}" Content="Width" /> |
336 | | - <local:DoubleUpDownControl x:Name="WidthTextBox" Grid.Column="1" Value="{Binding Width}" IsEnabled="{Binding Property.CanWrite,Mode=OneTime}" AutomationProperties.LabeledBy="{Binding ElementName=WidthLabel,Mode=OneTime}" /> |
337 | | - <Label Name="HeightLabel" Grid.Column="2" Target="{Binding ElementName=HeightTextBox,Mode=OneTime}" Content="Height" /> |
338 | | - <local:DoubleUpDownControl x:Name="HeightTextBox" Grid.Column="3" Value="{Binding Height}" IsEnabled="{Binding Property.CanWrite,Mode=OneTime}" AutomationProperties.LabeledBy="{Binding ElementName=HeightLabel,Mode=OneTime}" /> |
339 | | - </Grid> |
340 | | - </ControlTemplate> |
341 | | - </Setter.Value> |
342 | | - </Setter> |
343 | | - </Style> |
| 324 | + <Style TargetType="local:SizeEditorControl"> |
| 325 | + <Setter Property="Template"> |
| 326 | + <Setter.Value> |
| 327 | + <ControlTemplate TargetType="local:SizeEditorControl"> |
| 328 | + <Grid> |
| 329 | + <Grid.ColumnDefinitions> |
| 330 | + <ColumnDefinition Width="Auto" /> |
| 331 | + <ColumnDefinition Width="*" /> |
| 332 | + <ColumnDefinition Width="Auto" /> |
| 333 | + <ColumnDefinition Width="*" /> |
| 334 | + </Grid.ColumnDefinitions> |
| 335 | + <TextBlock Grid.Column="0" Name="WidthLabel" Text="Width" Margin="0,0,5,0" /> |
| 336 | + <local:DoubleUpDownControl x:Name="WidthTextBox" Grid.Column="1" Value="{Binding Width}" IsEnabled="{Binding Property.CanWrite,Mode=OneTime}" AutomationProperties.LabeledBy="{Binding ElementName=WidthLabel,Mode=OneTime}" /> |
| 337 | + <TextBlock Name="HeightLabel" Grid.Column="2" Text="Height" Margin="5,0,5,0" /> |
| 338 | + <local:DoubleUpDownControl x:Name="HeightTextBox" Grid.Column="3" Value="{Binding Height}" IsEnabled="{Binding Property.CanWrite,Mode=OneTime}" AutomationProperties.LabeledBy="{Binding ElementName=HeightLabel,Mode=OneTime}" /> |
| 339 | + </Grid> |
| 340 | + </ControlTemplate> |
| 341 | + </Setter.Value> |
| 342 | + </Setter> |
| 343 | + </Style> |
344 | 344 |
|
345 | 345 | <Style TargetType="local:RatioEditorControl"> |
346 | 346 | <Setter Property="Template"> |
|
0 commit comments