CellGestures class Core

What presses, keys and the wheel do in the cells of a grid (GridView.CellGestures): a view that gives its cell a behaviour of its own overrides what it needs. All on the UI thread.

public abstract class CellGestures
Namespace
ArionUI.Presentation
Package
ArionUI.Presentation · dotnet add package ArionUI.Presentation --prerelease

Constructors

CellGestures

protected CellGestures();

Properties

Active

public virtual bool Active { get; }

Whether a drag runs.

Methods

Announce

protected void Announce(string text);

Says text on the grid's announce channel.

Begin

public virtual bool Begin(object item, int elementId, double x, double y);

A press on element elementId of a cell, at a point in the cell; true claims it as a drag (CellGestures.Move, then CellGestures.Commit or CellGestures.Cancel).

Cancel

public virtual void Cancel();

The drag was cancelled (Esc).

Commit

public virtual void Commit();

The drag ended at the release.

Key

public virtual bool Key(ArionKey key, ArionModifiers mods);

A key while a cell has the focus, before the grid's navigation; true consumes it.

public virtual IReadOnlyList<MenuItem> MenuEntries(object item, int column);

Entries of the cell's menu, before the grid's.

Move

public virtual void Move(double x, double y);

The pointer moved during a claimed drag.

ResetView

public virtual bool ResetView();

Back to the initial view; false when nothing changed.

Wheel

public virtual bool Wheel(double notches);

The wheel over a cell; true consumes it.

Zoom

public virtual bool Zoom(double notches);

+ or -: notches in (positive) or out; false leaves the keys to the grid.