I am creating a custom WPF control class which inherits from ComboBox. As I am just defining behavior, the exiting ComboBox templates are fine for my purposes and I don’t want to created a whole set of templates to support different themes. Is there a way to specify that my control uses the existing ComboBox templates?
Share
Give your control a default style and set BasedOn to the default style of ComboBox:
This will inherit the template setter from the ComboBox default style.