Jumar Macato
7 years ago
No known key found for this signature in database
GPG Key ID: B19884DAC3A5BF3F
2 changed files with
2 additions and
2 deletions
-
samples/ControlCatalog/DecoratedWindow.xaml.cs
-
src/Windows/Avalonia.Win32/WindowImpl.cs
|
|
|
@ -39,8 +39,7 @@ namespace ControlCatalog |
|
|
|
SetupSide("TopRight", StandardCursorType.TopRightCorner, WindowEdge.NorthEast); |
|
|
|
SetupSide("BottomLeft", StandardCursorType.BottomLeftCorner, WindowEdge.SouthWest); |
|
|
|
SetupSide("BottomRight", StandardCursorType.BottomRightCorner, WindowEdge.SouthEast); |
|
|
|
this.FindControl<Button>("MinimizeButton").Click += delegate |
|
|
|
{ this.WindowState = WindowState.Minimized; }; |
|
|
|
this.FindControl<Button>("MinimizeButton").Click += delegate { this.WindowState = WindowState.Minimized; }; |
|
|
|
this.FindControl<Button>("MaximizeButton").Click += delegate |
|
|
|
{ |
|
|
|
WindowState = WindowState == WindowState.Maximized ? WindowState.Normal : WindowState.Maximized; |
|
|
|
|
|
|
|
@ -336,6 +336,7 @@ namespace Avalonia.Win32 |
|
|
|
WindowsMouseDevice.Instance.Capture(null); |
|
|
|
UnmanagedMethods.DefWindowProc(_hwnd, (int)UnmanagedMethods.WindowsMessage.WM_NCLBUTTONDOWN, |
|
|
|
new IntPtr((int)UnmanagedMethods.HitTestValues.HTCAPTION), IntPtr.Zero); |
|
|
|
e.Pointer.Capture(null); |
|
|
|
} |
|
|
|
|
|
|
|
static readonly Dictionary<WindowEdge, UnmanagedMethods.HitTestValues> EdgeDic = new Dictionary<WindowEdge, UnmanagedMethods.HitTestValues> |
|
|
|
|