✅ Styling Expander Avalonia
I am trying to change the style of the pointer over effect of the expander. I have tried everything I can think of while reading through https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Fluent/Controls/Expander.xaml and I cannot figure it out. I just want the background to be purple and the foreground to be pink on hover whether the expander is expanded or collapsed. As per the comments in the stylings, I have determined that the main stylings effect what's inside the drop down, and what's in the nested stylings changes the header, but I cannot figure out the pointer over effect. Thanks.
GitHub
Avalonia/src/Avalonia.Themes.Fluent/Controls/Expander.xaml at maste...
Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET Foundation community project. - AvaloniaUI/Avalonia


5 Replies
i figured it out. nvm
how'd you figure it out?
lol that was back in November of 2023. I honestly couldn't even tell you what happened with this project. I haven't actually touched Avalonia since. I ventured off to Python's QT framework and Web Apps using React, Next JS wrapped with Electron for a desktop environment.
for anyone encountering this problem, the selector you're looking for is:
❤️