Browse Source

Fix BeginResizeDrag and BeginMoveDrag in DecoratedWindow (#14841)

Tim 1 year ago
parent
commit
34d7f39bc4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      samples/ControlCatalog/DecoratedWindow.xaml.cs

+ 2 - 2
samples/ControlCatalog/DecoratedWindow.xaml.cs

@@ -19,7 +19,7 @@ namespace ControlCatalog
             ctl.Cursor = new Cursor(cursor);
             ctl.PointerPressed += (i, e) =>
             {
-                PlatformImpl?.BeginResizeDrag(edge, e);
+                BeginResizeDrag(edge, e);
             };
         }
 
@@ -28,7 +28,7 @@ namespace ControlCatalog
             AvaloniaXamlLoader.Load(this);
             this.Get<Control>("TitleBar").PointerPressed += (i, e) =>
             {
-                PlatformImpl?.BeginMoveDrag(e);
+                BeginMoveDrag(e);
             };
             SetupSide("Left", StandardCursorType.LeftSide, WindowEdge.West);
             SetupSide("Right", StandardCursorType.RightSide, WindowEdge.East);