Setting Background Style for Pressed Avalonia Button Has No Effect
I would like to use C#, with no XAML, to have my Avalonia Button display a different background color while it is pressed. Creating Styles for :pointerover and :pressed work for changing the foreground color. But I can’t make it work for the background color for the :pressed pseudoclass. The foreground changes as I’ve specified, but the background turns to the same dark gray one sees when not using any style settings.