Skip to content
Discussion options

You must be logged in to vote

FluentAvalonia has this style already built in. Just set Classes="accent" on any Button.

<!--Accent Button-->
<Style Selector="^.accent">
<Style Selector="^ /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource AccentButtonBackground}" />
<Setter Property="BorderBrush" Value="{DynamicResource AccentButtonBorderBrush}" />
<Setter Property="Foreground" Value="{DynamicResource AccentButtonForeground}" />
</Style>
<Style Selector="^:pointerover /template/ ContentPresenter#PART…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DmitryBorodiy
Comment options

Answer selected by DmitryBorodiy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants