Skip to content

Commit 0d6b973

Browse files
author
Declan Taylor
committed
Added margin to textblocks.
Centered textblocks
1 parent 8ff2044 commit 0d6b973

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/SuggestBoxLib/SuggestBoxBase.xaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
22
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3-
43
xmlns:bc="clr-namespace:SuggestBoxLib"
54
xmlns:conv="clr-namespace:SuggestBoxLib.Converters"
65
xmlns:reskeys="clr-namespace:SuggestBoxLib.Themes"
@@ -23,6 +22,9 @@
2322
<Grid x:Name="PART_Root">
2423
<TextBlock Text="{TemplateBinding Hint}"
2524
Background="Transparent"
25+
VerticalAlignment="Center"
26+
HorizontalAlignment="Left"
27+
Margin="3,0"
2628
Foreground="{DynamicResource {x:Static reskeys:ResourceKeys.ControlTextBrushKey}}"
2729
Visibility="{Binding IsHintVisible, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource btv}}"
2830
Opacity="0.5" />
@@ -34,6 +36,9 @@
3436
/>
3537

3638
<bc:PathTrimmingTextBlock
39+
VerticalAlignment="Center"
40+
HorizontalAlignment="Left"
41+
Margin="3,0"
3742
Path="{Binding Text, RelativeSource={RelativeSource TemplatedParent},UpdateSourceTrigger=PropertyChanged,Mode=OneWay}"
3843
ShowElipses="{Binding ShowElipses, RelativeSource={RelativeSource TemplatedParent},UpdateSourceTrigger=PropertyChanged,Mode=OneWay}"
3944
RenderOptions.ClearTypeHint="Enabled"

0 commit comments

Comments
 (0)