Browse Source

Round height/width in SizeDisplay

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/wpfdesigner@5884 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Kumar Devvrat 16 years ago
parent
commit
b134b6ff0d
  1. 4
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Controls/ControlStyles.xaml

4
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Controls/ControlStyles.xaml

@ -419,7 +419,7 @@ @@ -419,7 +419,7 @@
StrokeThickness="1"
Data="M0,0 L0,1 M0,0.5 L1,0.5"
Stretch="Fill" />
<TextBlock Text="{Binding Path=Height}"
<TextBlock Text="{Binding Path=Height, Converter={x:Static Converters:FormatDoubleConverter.Instance}}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Padding="1,1,1,1"
@ -453,7 +453,7 @@ @@ -453,7 +453,7 @@
StrokeThickness="1"
Data="M0,0 L0,1 M0,0.5 L1,0.5"
Stretch="Fill" />
<TextBlock Text="{Binding Path=Width}"
<TextBlock Text="{Binding Path=Width, Converter={x:Static Converters:FormatDoubleConverter.Instance}}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Padding="1,1,1,1"

Loading…
Cancel
Save