在combobox中设置选项模板,并设置触发条件更换绑定即可
<ComboBox x:Name="BorderTypeComboBox"
Margin="18,0,0,0"
Width="68" Height="25"
ItemsSource="{Binding BorderTypes}">
<!-- 下拉选项宽度设置 -->
<ComboBox.Resources>
<Style TargetType="Popup">
<Setter Property="Width" Value="1000"/>
<Setter Property="MinWidth" Value="154"/>
</Style>
<Style TargetType="ComboBoxItem">
<Setter Property="Width" Value="154"/>
<Setter Property="Height"