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

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

Properties

Maximum

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

Minimum

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

Name

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

Value

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

ValueUx

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

Methods

Move

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

Move

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

Move

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

Set

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

Solve

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

Solve

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

Events

Changed

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