Docs / UI

Glossary: ElementStateData

The members of ElementStateData, in alphabetical order.

Color legend plain property method event

The state an element shows, passed to OnStateChanged. The UI shares one immutable instance per state and source.

A class. The base element page shows it in context.

Names are colored by what they are: a property, a method or an event; values and fields keep the plain color.

Properties

MouseButtonsStates 馃爢

MouseButtonsStates 路 Read-only. The current states of the mouse buttons (read when you read it, not stored with the state).

Source 馃爢

StateSource 路 Read-only. Where the state comes from.

State 馃爢

ElementState 路 Read-only. The state shown.

Fields

NormalOwn 馃爢

ElementStateData 路 Static, read-only field. The Normal / Own state every element starts with.

Methods

ElementStateData() 馃爢

ElementStateData(ElementState state, StateSource source) 路 Creates a state, for example to compare with StateData.

Parameter Type Description
state ElementState The state, such as ElementState.Hover.
source StateSource Where the state comes from: the element鈥檚 Own, its Parent or its Children.

==() 馃爢

operator ==(ElementStateData state1, ElementStateData state2) 路 True when the state and the source are equal. != and Equals compare the same way.

Parameter Type Description
state1 ElementStateData The first state.
state2 ElementStateData The second state.

GetHashCode() 馃爢

GetHashCode() 路 A hash of the state and the source.

ToString() 馃爢

ToString() 路 The state and the source as text, separated by a vertical bar.