✅ WPF MouseOver expansion of item isn't working
I have a window with a bar that needs to hide down to a separator until the user mouses over it or checks a checkbox (which pins the bar to "open"). However, WPF seems to be claiming if the mouse is over the margin for the separator, it's not over the bar. The code is below.
What's going on? It should work so that the bar stays open if the mouse is anywhere over the bar, not just the separator.
8 Replies
can I get a screenshot of the layout in question?
I'm having trouble visualizing what you describe
Do these help?
okay, so
hovering over the separator should toggle the bar?
try giving the Grid a background of
Transparent
No, hovering over anywhere in its parent should reveal the rest of the bar. Only the separator is visible. The separator has a margin that should also cause the bar to expand.
as opposed to a background of
null
I did.
uhhh
well
use
IsMouseOver
I found out about that after I started the thread. So it's not shown.
Ah. That did it. Thank you.