Search code examples
c#.netwpfmaterial-design-in-xaml

How to disable MaterialDesignInXaml Button animation?


I'm trying to create a button in WPF with MaterialDesignInXaml installed, without the animation when clicking it:

This animation here

I've already looked through each property of the button and took a look at the buttons source code, but haven't found a solution. The problem is, that the animation exceeds the rounded window. I'm still quite on the beginner level of designing with xaml


Solution

  • Set the RippleAssist.Feedback attached property to Transparent:

    <Button materialDesign:RippleAssist.Feedback="Transparent" Content="..." />