Skip to main content

ClickMode Enum

NuGet: GHIElectronics.TinyCLR.UI
Assembly: GHIElectronics.TinyCLR.UI
Namespace: GHIElectronics.TinyCLR.UI.Controls

Specifies when the Click event fires for button-family controls (Button, CheckBox, RadioButton). Mirrors WPF's System.Windows.Controls.ClickMode. Governs touch activation; the default is Release.

public enum ClickMode

Fields

NameValueDescription
Release0Click fires when the touch is pressed and then released over the control (default, matches WPF). Allows dragging off the control before release to cancel.
Press1Click fires as soon as the control is pressed (touch down) for the snappiest response. This matches the TinyCLR 2.x behavior; there is no drag-off-to-cancel in this mode.
Hover2Reserved for pointer hover. A touch-only panel never hovers, so this behaves like Release for touch input.