remove default width in MultiComboBox

This commit is contained in:
lxymahatma
2024-09-06 23:57:24 +08:00
parent a552244b42
commit 53f9218b13
2 changed files with 2 additions and 1 deletions

View File

@@ -14,6 +14,7 @@
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<u:MultiComboBox <u:MultiComboBox
Watermark="Please Select" Watermark="Please Select"
Width="300"
MaxHeight="200" MaxHeight="200"
SelectedItems="{Binding SelectedItems}" SelectedItems="{Binding SelectedItems}"
ItemsSource="{Binding Items}" > ItemsSource="{Binding Items}" >
@@ -21,6 +22,7 @@
<u:MultiComboBox <u:MultiComboBox
Name="combo" Name="combo"
Watermark="Please Select" Watermark="Please Select"
Width="300"
InnerLeftContent="Left" InnerLeftContent="Left"
InnerRightContent="Right" InnerRightContent="Right"
Classes="ClearButton" Classes="ClearButton"

View File

@@ -10,7 +10,6 @@
<Setter Property="CornerRadius" Value="{DynamicResource ComboBoxSelectorCornerRadius}" /> <Setter Property="CornerRadius" Value="{DynamicResource ComboBoxSelectorCornerRadius}" />
<Setter Property="BorderBrush" Value="Transparent" /> <Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="HorizontalAlignment" Value="Left" /> <Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="Width" Value="300" />
<Setter Property="MaxDropdownHeight" Value="300" /> <Setter Property="MaxDropdownHeight" Value="300" />
<Setter Property="MaxSelectionBoxHeight" Value="270"></Setter> <Setter Property="MaxSelectionBoxHeight" Value="270"></Setter>
<Setter Property="MinHeight" Value="32" /> <Setter Property="MinHeight" Value="32" />