Table of Contents

Class MoveGesture

Namespace
Icy.Design.Editor
Assembly
IcyUI.Design.dll

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

Rectangle

Target

Gets where the element would land, or null when nothing under the pointer can take it.

public PlacementTarget? Target { get; }

Property Value

PlacementTarget

TargetContainer

Gets the container Target belongs to, or null.

public UIElement? TargetContainer { get; }

Property Value

UIElement

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

screenPoint Point

The pointer, in screen space.