Hallo,
I was wondering how I can change the appreance of the dropdown popup. I checked with the debugger what classes are applied but can’t get it to work at runtime.
Hallo,
I was wondering how I can change the appreance of the dropdown popup. I checked with the debugger what classes are applied but can’t get it to work at runtime.
The dropdown will be created on the root visual elements dynamically and the styles propagate to the children, so you would have to set the styles directly on the root of the hierarchy for them to be applied.
The UI debugger on the runtime panel is the right tool to see what is happening.
At first I did not quite understand what you meant by adding the styles to the root but now I got it.
I had to add the stylesheet to the root.
Thank you for the help!
How did you add the stylesheet to the root?
Sorry if the answer comes late, but I did it like this:
_root.parent.styleSheets.Add(_baseStyleSheet);