コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: motolies/mLauncher
        private void WindowShow()
        {
            // 현재 커서위치 알아오기

            System.Windows.Point CursorPoint = MouseCursor.GetCursorPos(this);

            this.Left = CursorPoint.X;
            this.Top  = CursorPoint.Y;
            if (this.WindowState == WindowState.Minimized)
            {
                this.WindowState = WindowState.Normal;
            }
            // 우선은 최상단에 보이게 한 후에 다시 설정값으로 변경
            this.Topmost = true;
            this.Show();
            this.Activate();

            // 리모트 데스크탑 강제로 다시 렌더링하기
            this.UpdateLayout();
        }