Hi,
Im sure this is super easy and I must be missing something, but I am trying to change the background color of my label on mouse hover.
Ive got it working for now by using the MouseEnter / MouseLeave events but figure this task would be perfect for the ThemeBuilder.
According to the documentation, a label uses the “label-wrapper” class inside the ThemeBuilder but I cant seem to make it work.
I have added a Hovered State to the Label Wrapper / Label section and added a backGroundColor Property but with no luck.
What am I missing in getting this to work?
Also on a similar note, as I don’t want to apply this theme to all labels and just a few, I know I can use the AppearanceKey for specific controls but what is the easiest / most minimal way to “clone” a “Label Wrapper” to create another set of properties etc.
Thanks,
Brayden.
Hi,
I am currently using Version 2.5.16.
I am assuming i would need by programming condition as I am trying to change the color on Mouse Hover and reset on leave. But open to which way it can work.
Thanks.
Hi Brayden
For a better understand of your goal and find a better solution
Q.- the labels that you want to apply these style, must be in design time or in runtime, by a programming condition?
And what version of Wisej are you using?
Regards
Please login first to submit.