This project is read-only.
2
Vote

Update source to keep window in the browser.

description

You may want to update the source to include the following lines to keep the window in the browser.
 
if (Application.Current != null && Application.Current.RootVisual != null &&
                (e.GetPosition(Application.Current.RootVisual).X < 0 || e.GetPosition(Application.Current.RootVisual).Y < 0))
            {
                return;
            }
            if (Application.Current != null && Application.Current.RootVisual != null &&
                (e.GetPosition(Application.Current.RootVisual).Y >= Application.Current.Host.Content.ActualHeight))
            {
                return;
            }
            if (Application.Current != null && Application.Current.RootVisual != null &&
                (e.GetPosition(Application.Current.RootVisual).X >= Application.Current.Host.Content.ActualWidth))
            {
                return;
            }
 
In the Chrome_MouseMove(object sender, MouseEventArgs e) method.

comments