src/modules/launcher/PowerLauncher/MainWindow.xaml.cs
/// <summary>
/// Calculates X co-ordinate of main window top left corner.
/// </summary>
/// <returns>X co-ordinate of main window top left corner</returns>
Calculates X co-ordinate of main window top left corner.
Calculates X co - ordinate of main window top left corner .
private double WindowLeft()
        {
            var screen = Screen.FromPoint(System.Windows.Forms.Cursor.Position);
            var dip1 = WindowsInteropHelper.TransformPixelsToDIP(this, screen.WorkingArea.X, 0);
            var dip2 = WindowsInteropHelper.TransformPixelsToDIP(this, screen.WorkingArea.Width, 0);
            var left = (dip2.X - ActualWidth) / 2 + dip1.X;
            return left;
        }
private double WindowLeft ( ) { var screen = Screen . FromPoint ( System . Windows . Forms . Cursor . Position ) ; var dip1 = WindowsInteropHelper . TransformPixelsToDIP ( this , screen . WorkingArea . X , 0 ) ; var dip2 = WindowsInteropHelper . TransformPixelsToDIP ( this , screen . WorkingArea . Width , 0 ) ; var left = ( dip2 . X - ActualWidth ) / 2 + dip1 . X ; return left ; }
Calculates X co-ordinate of main window top left corner.
Calculates X co - ordinate of main window top left corner .
X co-ordinate of main window top left corner
X co - ordinate of main window top left corner