【发布时间】:2011-01-28 13:06:51
【问题描述】:
我正在尝试在 WPF 中设置组合框的样式,使它们为白色,并具有与文本框相同的边框。到目前为止我有以下样式,但不知道如何设置边框:
<Style TargetType="ComboBox">
<Setter Property="Margin" Value="0,2,0,2" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="Background" Value="White" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ComboBox}">
???
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
【问题讨论】: