Class MoveGesture
A move in progress: the selected element follows the pointer as a ghost, and lands where the container under the pointer places it when the gesture completes. Nothing is written before Complete().
public sealed class MoveGesture
- Inheritance
-
MoveGesture
- Inherited Members
- Extension Methods
Properties
GhostBounds
Gets the dragged element's outline at the pointer, in screen space.
public Rectangle GhostBounds { get; }
Property Value
Target
Gets where the element would land, or null when nothing under the pointer can take it.
public PlacementTarget? Target { get; }
Property Value
TargetContainer
public UIElement? TargetContainer { get; }
Property Value
Methods
Cancel()
Abandons the move. Nothing was written, so nothing changes.
public void Cancel()
Complete()
Writes the move as one undo step, or does nothing when there's no target.
public EditResult Complete()
Returns
- EditResult
The outcome; a failed edit rolls the whole move back.
Update(Point)
Moves the ghost and finds the drop target under screenPoint.
public void Update(Point screenPoint)
Parameters
screenPointPointThe pointer, in screen space.