Skip to content
This repository was archived by the owner on Sep 25, 2024. It is now read-only.

Commit 49933b8

Browse files
author
Eric Maupin
committed
[Win] Align thickness editor to 24pt rows
1 parent 7fccbe8 commit 49933b8

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

Xamarin.PropertyEditing.Windows/Themes/Resources.xaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -377,26 +377,27 @@
377377
<ColumnDefinition Width="*" />
378378
</Grid.ColumnDefinitions>
379379
<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" />
382383
</Grid.RowDefinitions>
383384

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">
385386
<Path Style="{StaticResource ThicknessIconStyle}" Data="{DynamicResource LeftThicknessGeometry}" />
386387
</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">
389390
<Path Style="{StaticResource ThicknessIconStyle}" Data="{DynamicResource RightThicknessGeometry}" />
390391
</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">
393394
<Path Style="{StaticResource ThicknessIconStyle}" Data="{DynamicResource TopThicknessGeometry}" />
394395
</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">
397398
<Path Style="{StaticResource ThicknessIconStyle}" Data="{DynamicResource BottomThicknessGeometry}" />
398399
</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" />
400401
</Grid>
401402
</ControlTemplate>
402403
</Setter.Value>

0 commit comments

Comments
 (0)