Class BlazorWindowMouseDragControllerBase
Base class for implementing mouse-based window dragging behavior in a Blazor-integrated window. Manages mouse capture, drag threshold detection, and cursor changes during drag operations.
Inheritance
Inherited Members
Namespace: PoeShared.Blazor.Wpf
Assembly: PoeShared.Blazor.Wpf.dll
Syntax
public abstract class BlazorWindowMouseDragControllerBase : DisposableReactiveObject, IDisposable, INotifyPropertyChanged
Constructors
Name | Description |
---|---|
BlazorWindowMouseDragControllerBase(IBlazorWindow, BlazorContentControl) |
Properties
Name | Description |
---|---|
BlazorWindow | Gets the associated Blazor window being dragged. |
ContentControl | Gets the content control where mouse interaction is captured. |
CursorPosition | Gets the current screen coordinates of the mouse cursor. |
DragSize | Gets the dimensions in pixels, of the rectangle that a drag operation must extend to be considered a drag. The rectangle is centered on a drag point. |
IsDragging | Gets a value indicating whether the drag operation is still active. |
StartPoint | Gets the cursor position when the drag was initiated. |
WindowInitialPosition | Gets the original window position when the drag began. |
WindowInitialSize | Gets the original window size when the drag began. |
Methods
Name | Description |
---|---|
GetOverrideCursor() | Optionally overrides the cursor shown during dragging. |
HandleMove(Point) | Called during a drag operation when the mouse is moved. Subclasses must implement logic for repositioning/resizing the window. |
HandleMove(int, int) | Called during a drag operation when the mouse is moved, delta takes into consideration start point, cursor position, etc |