I looked at the following example on how the ComboBox style is, but I could not create the focus effect when entering the editable combo box. Whenever a ComboBox receives focus, it should go into edit mode, and the component should have a focus style.
The main problem is that whenever I switch to edit mode, it is not the surrounding ComboBox that actually has focus, but the text subcomponent, and I could not create a Trigger in the text component that changes the ComboBox frame style, since I donβt I know how to refer to a parent component from a trigger.
I tried to add a ControlTemplate Trigger to a TextBox or style trigger. I tried to reference the ComboBox by name or using the TemplateBinding parameter, but with no luck. A simple example would be much appreciated.
styling wpf xaml combobox
tronda
source share