Fade-In on MouseClick

Mar 31, 2009 at 9:38 PM
Hello,

is there any possibility to change the event for the "slide-IN" of the hidden-content from MouseOver to MouseClick?

Thanks
Apr 2, 2009 at 7:00 PM
Edited Apr 2, 2009 at 7:02 PM
Hi @ all,

analising the code, shows me, that there might be no implemented way to change the behaviour from MouseOver (->implemented as MouseMove)  to MouseLeftButtonDown.

So i've done the following on my own to reach the new behaviour (its the same behaviour like in vs2008):

1. Download the source-code
2. Open DockablePaneAnchorTabs.cs
3. Replace

        protected override void OnMouseMove(MouseEventArgs e)
        {
            if (ReferencedContent != null)
            {
                ReferencedContent.Manager.ShowFlyoutWindow(ReferencedContent);
            }
            base.OnMouseMove(e);
        }


with 

        protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
        {
            if (ReferencedContent != null)
            {
                ReferencedContent.Manager.ShowFlyoutWindow(ReferencedContent);
            }
            base.OnMouseLeftButtonDown(e);
        }

4. Have Fun :-)

In my opinion this change might be the default-behaviour because the MouseMove-Solution could be very annoying.