Skip to content

How to set a custom color in outlined button #3895

Answered by corvinsz
BrensNina asked this question in Q&A
Discussion options

You must be logged in to vote

@BrensNina the "click" animation is called ripple-effect.
You can set the color of the Ripple via an attached property like so: materialDesign:RippleAssist.Feedback="Red"
So the XAML for your Button would look something like this:

<Button Width="Auto"
        materialDesign:RippleAssist.Feedback="Red"
        BorderBrush="Red"
        Content="Delete"
        Foreground="Red"
        Style="{StaticResource MaterialDesignOutlinedButton}" />

Replies: 2 comments 1 reply

Comment options

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

Answer selected by BrensNina
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants