How does the ComboBox control in wpf change the style when the mouse is pressed / touchscreen clicked?

topic description

I want to change the style of the ComboBox control in the wpf window when the mouse is pressed / touchscreen clicked, but after I wrote the following code, I found that the ComboBox control only shows the effect I want when it is "expanded-> folded". When "put away-> expanded", there is no style change when the mouse is pressed, which is a headache.

related codes

   

Mar.31,2021

the method currently used is to derive a component on its own, instead of using MultiDataTrigger

.
Menu