Replies: 3 comments 3 replies
-
I would support this in ControlTheme. It does logically make sense and I think the previous limitations preventing it no longer apply. We need buy in from the core team though. It's also a lot of control themes that need updating. |
Beta Was this translation helpful? Give feedback.
-
Not 100% sure what you mean here, but I think the crux of what you're saying is:
Is that correct? The problem with that is twofold:
But maybe I'm misunderstanding, because the discussion about no longer using |
Beta Was this translation helpful? Give feedback.
-
Raise a discussion first and consider move to issue later.
Right now, it is very unintuitive to restyle some controls in several pseudoclasses.
Take below as example. When developer wants to override pointerover background of an ListBoxItem
Developers would expect to override by
But it is not working, because pointerover style is directly applied on ContentPresenter in template.
However, ContentPresenter background comes from template parent, and it is the only consumer of this property. In such a case there is no reason to apply the style directly to template part. It should be applied to the control.
Beta Was this translation helpful? Give feedback.
All reactions