IconState

References
public sealed class IconState
Icon state descriptor. An icon state is basically a numeric value which can change over time, and may affect certain elements of an icon.

Constructors

IconState

#
public IconState(string name, double minimum, double maximum, double value)
Create a new icon state.
name (string)State name.
minimum (double)Lower bound.
maximum (double)Upper bound.
value (double)Initial value.

Properties

Maximum

#
public double Maximum { get; }
Gets the state upper bound.

Minimum

#
public double Minimum { get; }
Gets the state lower bound.

Name

#
public string Name { get; }
Gets the name of this state.

Value

#
public double Value { get; }
Gets the current value of this state.

ValueUx

#
public Animated<double> ValueUx { get; }
Gets the animated value of this state.

Methods

Move

#
public void Move(double newValue, Duration duration, Motion motion)
Move the state to a new value over time.
newValue (double)New target state.
duration (Duration)Animation duration.
motion (Motion)Animation motion.

Move

#
public void Move(double newValue, Duration duration)
Move the state to a new value over time.
newValue (double)New target state.
duration (Duration)Animation duration.

Move

#
public void Move(double newValue)
Move the state to a new value over time.
newValue (double)New target state.

Set

#
public void Set(double newValue)
Set the state to a new value immediately.
newValue (double)New value.

Solve

#
public void Solve(Context context)
Solve the current state.
context (Context)Context associated with animation.
Value indicating whether the internal state was modified.

Solve

#
public void Solve(IFlexControl control)
Solve the current state.
control (IFlexControl)Controlassociated with animation.
Value indicating whether the internal state was modified.

Events

Changed

#
public event EventHandler<IconStateEventArgs> Changed
This event is raised whenever the state value changes.