Table of Contents

Enum ControlState

Namespace
Icy.UI.Styles
Assembly
IcyUI.dll

Represents the interaction states a UIElement can combine at once.

[Flags]
public enum ControlState
Extension Methods

Fields

Checked = 32

The element represents an "on"/checked value (e.g. a checked ToggleButton).

Disabled = 4

The element is disabled and shouldn't respond to input.

Expanded = 64

The element represents an expanded value (e.g. an expanded Expander).

Focused = 8

The element has input focus.

Highlighted = 256

The element is the currently keyboard/gamepad-highlighted item in an open Selector popup - distinct from Selected, which persists after the popup closes.

Hovered = 1

The pointer is over the element.

Invalid = 512

One of the element's bindings failed to write a value to its source (see HasError), e.g. text that isn't a number in a numeric field.

Normal = 0

No interaction state is active.

Pressed = 2

The element is being pressed (e.g. a mouse button is held down over it).

Selected = 128

The element represents the currently selected item in a Selector.

Touching = 16

The element is being touched.