Dreamine.UI.Wpf.Equipment
1.0.1
Dreamine.UI.Wpf.Equipment 사용자 인터페이스 기능과 구성 요소를 제공합니다.
Toggle main menu visibility
로딩중...
검색중...
일치하는것 없음
ShiftWindowOntoScreenHelper.cs
이 파일의 문서화 페이지로 가기
1
using
System.Windows;
2
3
namespace
Dreamine.UI.Wpf.Equipment.DreamineVirtualKeyboard
;
4
13
public
static
class
ShiftWindowOntoScreenHelper
14
{
15
48
public
static
void
ShiftWindowOntoScreen
(Window window, Rect waDip)
49
{
50
double
width =
double
.IsNaN(window.Width) || window.Width == 0 ? window.ActualWidth : window.Width;
51
double
height =
double
.IsNaN(window.Height) || window.Height == 0 ? window.ActualHeight : window.Height;
52
53
double
left = window.Left;
54
double
top = window.Top;
55
56
if
(left + width > waDip.Right) left = waDip.Right - width;
57
if
(left < waDip.Left) left = waDip.Left;
58
if
(top + height > waDip.Bottom) top = waDip.Bottom - height;
59
if
(top < waDip.Top) top = waDip.Top;
60
61
window.Left = left;
62
window.Top = top;
63
}
64
}
Dreamine.UI.Wpf.Equipment.DreamineVirtualKeyboard
Definition
DreamineEnterActionGroupProvider.cs:5
Dreamine.UI.Wpf.Equipment.DreamineVirtualKeyboard.ShiftWindowOntoScreenHelper
Definition
ShiftWindowOntoScreenHelper.cs:14
Dreamine.UI.Wpf.Equipment.DreamineVirtualKeyboard.ShiftWindowOntoScreenHelper.ShiftWindowOntoScreen
static void ShiftWindowOntoScreen(Window window, Rect waDip)
Definition
ShiftWindowOntoScreenHelper.cs:48
VirtualKeyboard
Helpers
ShiftWindowOntoScreenHelper.cs
다음에 의해 생성됨 :
1.17.0