Fix combo box alignment

This commit is contained in:
Caeden Statia 2020-02-13 19:22:30 -08:00
parent eaba02cfc5
commit c222316b41

View file

@ -22,7 +22,7 @@
Name="DropDownBorder" Name="DropDownBorder"
BorderBrush="{DynamicResource ComboBoxOutline}" BorderBrush="{DynamicResource ComboBoxOutline}"
Background="{DynamicResource ComboBoxBackground}" Background="{DynamicResource ComboBoxBackground}"
BorderThickness="1"> BorderThickness="0">
<ScrollViewer Name="DropDownScrollViewer"> <ScrollViewer Name="DropDownScrollViewer">
<Grid Name="grid" RenderOptions.ClearTypeHint="Enabled"> <Grid Name="grid" RenderOptions.ClearTypeHint="Enabled">
<Canvas <Canvas
@ -40,7 +40,8 @@
<ItemsPresenter <ItemsPresenter
Name="ItemsPresenter" Name="ItemsPresenter"
KeyboardNavigation.DirectionalNavigation="Contained" KeyboardNavigation.DirectionalNavigation="Contained"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
Width="{Binding ActualWidth, ElementName=templateRoot}"/>
</Grid> </Grid>
</ScrollViewer> </ScrollViewer>
</Border> </Border>
@ -48,14 +49,14 @@
<Border <Border
Name="Border" Name="Border"
Background="Transparent" Background="Transparent"
Margin="{TemplateBinding BorderThickness}"> Margin="0">
<TextBox <TextBox
Name="PART_EditableTextBox" Name="PART_EditableTextBox"
Margin="{TemplateBinding Padding}" Margin="2.5"
BorderBrush="Transparent" BorderBrush="Transparent"
BorderThickness="0" BorderThickness="0"
Foreground="{DynamicResource TextColor}" Foreground="{DynamicResource TextColor}"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" HorizontalContentAlignment="Left"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
IsReadOnly="True" IsReadOnly="True"
Background="Transparent" Background="Transparent"