【发布时间】:2016-11-10 21:05:31
【问题描述】:
朋友 我发现这段代码可以制作圆形组合框,但我不知道如何使用
有没有人可以帮助如何使用这个代码
<Style TargetType="{x:Type ComboBox}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ComboBox}">
<Border CornerRadius="5">
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
我应该怎么做才能将此代码应用到 wpf 中的组合框
【问题讨论】:
-
您需要覆盖组合框模板。
-
右键
ComboBox> 编辑模板 > 编辑副本,根据你的意愿更改模板。