FloatingButton

References
public sealed class FloatingButton
Base class for button UI elements that float in screen-space on top of IControl.

Properties

Anchor

#
Gets the anchor position of this button. This property is only relevant if Position == Anchored.
public PointF Anchor { get; }

Colour

#
Gets the colour of this button.
public Color Colour { get; }

Control

#
Gets the control associated with this floating button.
public IFlexControl Control { get; }

Enabled

#
Gets the enabled state of this button.
public bool Enabled { get; set; }

HasFocus

#
Gets or sets whether this interaction object is currently active. Object are made active by the owner control if they return Response.Capture from any event handlers. Control are made inactive when they return Response.Release, or when another object becomes active. You typically do not set this property.
public bool HasFocus { get; set; }

Icon

#
Gets or sets the icon associated with this button.
public IIcon Icon { get; set; }

Info

#
Gets or sets the info message for this button.
public string Info { get; set; }

Name

#
Gets or sets the name of this button.
public string Name { get; }

NumericValue

#
Gets the numeric value (if any) associated with this button.
public UiNumber NumericValue { get; }

Position

#
Gets the position category for this button.
public FloatingPosition Position { get; }

State

#
Gets the current state of this button.
public FloatingState State { get; }

Methods

Close

#
Close the button.
public void Close()

Hide

#
Hide the button.
public void Hide()

MakeNumeric

#
Turn this button into a numeric slider.
public void MakeNumeric(
number,
Number.
valueKey
State name (if any) on button icon to associate with number.
)

ModifyAnchor

#
Set a new anchor point. Handler is not required to modify the anchor animator in this case.
public void ModifyAnchor(
PointF
anchor,
New point.
immediate
If true, the button is moved immediately. If false, the change is gradual.
)

ModifyColour

#
Set a new colour.
public void ModifyColour(
Color
colour
New colour.
)

Show

#
Show the button.
public void Show()

Events

ValueChanged

#
Raised when the actual value of the associated number changes.
public event EventHandler<FloatingButtonEventArgs<UiNumber>> ValueChanged