forked from amkovkov/GranuSightSoftware2
fix: minor ui bugs
This commit is contained in:
@@ -177,12 +177,24 @@
|
||||
PlaceholderText="Марка пробы"
|
||||
SelectedIndex="{Binding BrandComboBoxSelectedIndex}"
|
||||
>
|
||||
|
||||
<ComboBox.Styles>
|
||||
|
||||
<Style Selector="ComboBox /template/ ContentPresenter#PART_ContentPresenter">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||
</Style>
|
||||
|
||||
<Style Selector="ComboBoxItem">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||
</Style>
|
||||
|
||||
</ComboBox.Styles>
|
||||
|
||||
<ComboBox.ItemTemplate>
|
||||
<DataTemplate x:DataType="vm:SampleCalibrationViewModel+BrandComboBoxItemViewModel">
|
||||
<TextBlock
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
>
|
||||
<TextBlock>
|
||||
<Run Text="{Binding Id, StringFormat='[{0}] '}" />
|
||||
<Run Text="{Binding BrandName}" />
|
||||
<Run Text=" - " />
|
||||
|
||||
Reference in New Issue
Block a user