Class FadeTransition
Fade transition.
Implements
Namespace: GraphShape.Controls
Assembly: GraphShape.Controls.dll
Syntax
public class FadeTransition : object, ITransition
Constructors
| Improve this Doc View SourceFadeTransition(Double, Double)
Initializes a new instance of the FadeTransition class.
Declaration
public FadeTransition(double startOpacity, double endOpacity)
Parameters
Type | Name | Description |
---|---|---|
System.Double | startOpacity | Starting opacity value. |
System.Double | endOpacity | Ending opacity value. |
FadeTransition(Double, Double, Int32)
Initializes a new instance of the FadeTransition class.
Declaration
public FadeTransition(double startOpacity, double endOpacity, int rounds)
Parameters
Type | Name | Description |
---|---|---|
System.Double | startOpacity | Starting opacity value. |
System.Double | endOpacity | Ending opacity value. |
System.Int32 | rounds | Number of transition rounds. |
Methods
| Improve this Doc View SourceRun(IAnimationContext, Control, TimeSpan, Action<Control>)
Runs the transition.
Declaration
public void Run(IAnimationContext context, Control control, TimeSpan duration, Action<Control> endAction)
Parameters
Type | Name | Description |
---|---|---|
IAnimationContext | context | The context of the transition. |
Control | control | The control which the transition should be run on. |
TimeSpan | duration | The duration of the transition. |
Action<Control> | endAction | The method that should be called when the transition finished. |