After minimizing app, on restore, windows pursues mouse pointer

Posted by Nuno Silva on Stack Overflow See other posts from Stack Overflow or by Nuno Silva
Published on 2009-10-07T15:52:44Z Indexed on 2010/03/29 20:03 UTC
Read the original article Hit count: 524

Filed under:
|

Hi!

I have an application in WPF C# where other than the purpose of what it's done, I customized the close and minimize buttons. The problem is that when I minimize, all is good, I cycle around all other apps, but, when I want to go back to the application, I click in the window in the taskbar, and the window pops up... But when it pops up, the window pursues the mouse pointer throughout the screen...

The code i've implemented the the simplest it can be...

    private void Minimize_LeftMouseDown(object sender, MouseButtonEventArgs e)
    {
        this.WindowState = WindowState.Minimized;

    }

Can you point me some directions?

Thanks

© Stack Overflow or respective owner

Related posts about wpf

Related posts about minimize