Think about what happens:
- You move the mouse over the button;
IsMouseOver
is true
, so your trigger hides the button;- The button is hidden, so the mouse cannot be over the button. The trigger shows the button again;
IsMouseOver
is true
, so your trigger hides the button;- ...
You could try setting the button's
Opacity
to
0
instead of hiding it.
However, this sounds like an extremely annoying and unusable UI design.