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

Commit 0113e77

Browse files
author
Eric Maupin
committed
[Win] Remove v-padding from point/size to fit
1 parent 1239217 commit 0113e77

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

Xamarin.PropertyEditing.Windows/Themes/Resources.xaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -311,36 +311,36 @@
311311
<ColumnDefinition Width="Auto" />
312312
<ColumnDefinition Width="*" />
313313
</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" />
315315
<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" />
317317
<local:DoubleUpDownControl Grid.Column="3" x:Name="YTextBox" Value="{Binding Y}" IsEnabled="{Binding Property.CanWrite,Mode=OneTime}" AutomationProperties.LabeledBy="{Binding ElementName=YLabel,Mode=OneTime}" />
318318
</Grid>
319319
</ControlTemplate>
320320
</Setter.Value>
321321
</Setter>
322322
</Style>
323323

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>
344344

345345
<Style TargetType="local:RatioEditorControl">
346346
<Setter Property="Template">

0 commit comments

Comments
 (0)