Wpf Combobox Rounded Corners

13,814

You need to create a custom Style in XAML for your ComboBox in which the outer container is a border with rounded corners. In this particular example, it's a default style that will be blanket applied throughout your application. The content of the control and ContentPresenter must still be declared within the Border.

<Style TargetType="{x:Type ComboBox}">
  ...
  <Setter Property="Template">
    <Setter.Value>
      <ControlTemplate TargetType="{x:Type ComboBox}">
        <Border CornerRadius="5">
          ...
        </Border>
      </ControlTemplate>
    </Setter.Value>
  </Setter>
</Style>
Share:
13,814
Admin
Author by

Admin

Updated on June 21, 2022

Comments

  • Admin
    Admin almost 2 years

    How can i make a combobox edges rounded..?.I have tried in blend,but no success till now..Any input will be highly helpfull