|
377 | 377 | <ColumnDefinition Width="*" /> |
378 | 378 | </Grid.ColumnDefinitions> |
379 | 379 | <Grid.RowDefinitions> |
380 | | - <RowDefinition /> |
381 | | - <RowDefinition /> |
| 380 | + <!-- We want to mimick a regular row with our first row, but we're already inset 0,2,0,2 from the parent !--> |
| 381 | + <RowDefinition MinHeight="22" /> |
| 382 | + <RowDefinition MinHeight="22" /> |
382 | 383 | </Grid.RowDefinitions> |
383 | 384 |
|
384 | | - <Border Grid.Column="0" Grid.Row="0" Style="{StaticResource EditorIconLabelHost}"> |
| 385 | + <Border Grid.Column="0" Grid.Row="0" Style="{StaticResource EditorIconLabelHost}" Margin="0,0,0,2"> |
385 | 386 | <Path Style="{StaticResource ThicknessIconStyle}" Data="{DynamicResource LeftThicknessGeometry}" /> |
386 | 387 | </Border> |
387 | | - <local:IntegerUpDownControl Grid.Column="0" Grid.Row="0" Margin="14,0,2,0" Value="{Binding Left}" IsEnabled="{TemplateBinding IsEnabled}" AutomationProperties.Name="Left" /> |
388 | | - <Border Grid.Column="1" Grid.Row="0" Style="{StaticResource EditorIconLabelHost}"> |
| 388 | + <local:IntegerUpDownControl Grid.Column="0" Grid.Row="0" Margin="14,0,2,2" Value="{Binding Left}" IsEnabled="{TemplateBinding IsEnabled}" AutomationProperties.Name="Left" /> |
| 389 | + <Border Grid.Column="1" Grid.Row="0" Style="{StaticResource EditorIconLabelHost}" Margin="0,0,0,2"> |
389 | 390 | <Path Style="{StaticResource ThicknessIconStyle}" Data="{DynamicResource RightThicknessGeometry}" /> |
390 | 391 | </Border> |
391 | | - <local:IntegerUpDownControl Grid.Column="1" Grid.Row="0" Margin="14,0,2,0" Value="{Binding Right}" IsEnabled="{TemplateBinding IsEnabled}" AutomationProperties.Name="Right" /> |
392 | | - <Border Grid.Column="0" Grid.Row="1" Style="{StaticResource EditorIconLabelHost}" Margin="0,4,0,0"> |
| 392 | + <local:IntegerUpDownControl Grid.Column="1" Grid.Row="0" Margin="14,0,2,2" Value="{Binding Right}" IsEnabled="{TemplateBinding IsEnabled}" AutomationProperties.Name="Right" /> |
| 393 | + <Border Grid.Column="0" Grid.Row="1" Style="{StaticResource EditorIconLabelHost}" Margin="0,2,2,0"> |
393 | 394 | <Path Style="{StaticResource ThicknessIconStyle}" Data="{DynamicResource TopThicknessGeometry}" /> |
394 | 395 | </Border> |
395 | | - <local:IntegerUpDownControl Grid.Column="0" Grid.Row="1" Margin="14,4,2,0" Value="{Binding Top}" IsEnabled="{TemplateBinding IsEnabled}" AutomationProperties.Name="Top" /> |
396 | | - <Border Grid.Column="1" Grid.Row="1" Style="{StaticResource EditorIconLabelHost}" Margin="0,4,0,0"> |
| 396 | + <local:IntegerUpDownControl Grid.Column="0" Grid.Row="1" Margin="14,2,2,0" Value="{Binding Top}" IsEnabled="{TemplateBinding IsEnabled}" AutomationProperties.Name="Top" /> |
| 397 | + <Border Grid.Column="1" Grid.Row="1" Style="{StaticResource EditorIconLabelHost}" Margin="0,2,0,0"> |
397 | 398 | <Path Style="{StaticResource ThicknessIconStyle}" Data="{DynamicResource BottomThicknessGeometry}" /> |
398 | 399 | </Border> |
399 | | - <local:IntegerUpDownControl Grid.Column="1" Grid.Row="1" Margin="14,4,2,0" Value="{Binding Bottom}" IsEnabled="{TemplateBinding IsEnabled}" AutomationProperties.Name="Bottom" /> |
| 400 | + <local:IntegerUpDownControl Grid.Column="1" Grid.Row="1" Margin="14,2,2,0" Value="{Binding Bottom}" IsEnabled="{TemplateBinding IsEnabled}" AutomationProperties.Name="Bottom" /> |
400 | 401 | </Grid> |
401 | 402 | </ControlTemplate> |
402 | 403 | </Setter.Value> |
|
0 commit comments