Skip to content

Disable effect when the cursor is on top of a button #2734

Closed Answered by Keboo
waylaa asked this question in Q&A
Discussion options

You must be logged in to vote

At present there is not a great way to do it, however you can work around it by doing the following.

  1. Set the Foreground on the Button to Transparent this will effectively hide the mouse over effect, but also hide your content.
  2. To make the pack icon show up, set is Foreground property to {DynamicResource PrimaryHueMidBrush}
  3. (Optionally) if you want to disable the click animation, you can also set materialDesign:RippleAssist.IsDisabled="True" on the Button.

Something like this:

<Button
    Style="{StaticResource MaterialDesignIconButton}"
    ToolTip="MaterialDesignIconButton"
    Foreground="Transparent"
    materialDesign:RippleAssist.IsDisabled="True"
    IsEnabled="{Binding DataContex…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@waylaa
Comment options

@ElieTaillard
Comment options

@waylaa
Comment options

Answer selected by waylaa
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