fix: minor ui bugs

This commit is contained in:
2026-08-10 11:55:39 +03:00
parent 19fe72bdc3
commit 67718629ae
3 changed files with 55 additions and 17 deletions
+36 -12
View File
@@ -167,12 +167,24 @@
PlaceholderText="Тип сепаратора"
SelectedIndex="{Binding SeparatorComboBoxSelectedIndex}"
>
<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:AnalysisViewModel+SeparatorComboBoxItemViewModel">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
>
<TextBlock>
<Run Text="{Binding Id, StringFormat='[{0}] '}" />
<Run Text="{Binding Type}" />
</TextBlock>
@@ -208,12 +220,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:AnalysisViewModel+BrandComboBoxItemViewModel">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
>
<TextBlock>
<Run Text="{Binding Id, StringFormat='[{0}] '}" />
<Run Text="{Binding BrandName}" />
<Run Text=" - " />
@@ -434,7 +458,7 @@
<StackPanel.IsVisible>
<MultiBinding Converter="{x:Static BoolConverters.And}">
<Binding Converter="{x:Static StringConverters.IsNullOrEmpty}" Path="Record.Image.Data" />
<!-- <Binding Converter="{x:Static StringConverters.IsNullOrEmpty}" Path="Record.Image.Data" /> -->
<Binding Converter="{x:Static BoolConverters.Not}" Path="Record.Image.IsLoading" />
<Binding Path="ImagesIsCapturing" />
</MultiBinding>
@@ -511,7 +535,7 @@
<StackPanel.IsVisible>
<MultiBinding Converter="{x:Static BoolConverters.And}">
<Binding Converter="{x:Static StringConverters.IsNullOrEmpty}" Path="Record.MaskImage.Data" />
<!-- <Binding Converter="{x:Static StringConverters.IsNullOrEmpty}" Path="Record.MaskImage.Data" /> -->
<Binding Converter="{x:Static BoolConverters.Not}" Path="Record.MaskImage.IsLoading" />
<Binding Path="ImagesIsCapturing" />
</MultiBinding>
@@ -588,7 +612,7 @@
<StackPanel.IsVisible>
<MultiBinding Converter="{x:Static BoolConverters.And}">
<Binding Converter="{x:Static StringConverters.IsNullOrEmpty}" Path="Record.ResultImage.Data" />
<!-- <Binding Converter="{x:Static StringConverters.IsNullOrEmpty}" Path="Record.ResultImage.Data" /> -->
<Binding Converter="{x:Static BoolConverters.Not}" Path="Record.ResultImage.IsLoading" />
<Binding Path="ImagesIsCapturing" />
</MultiBinding>
@@ -1074,7 +1098,7 @@
<StackPanel.IsVisible>
<MultiBinding Converter="{x:Static BoolConverters.And}">
<Binding Converter="{x:Static StringConverters.IsNullOrEmpty}" Path="Record.Image.Data" />
<!-- <Binding Converter="{x:Static StringConverters.IsNullOrEmpty}" Path="Record.Image.Data" /> -->
<Binding Converter="{x:Static BoolConverters.Not}" Path="Record.Image.IsLoading" />
<Binding Path="ImagesIsCapturing" />
</MultiBinding>