Class CustomAnimation
This class is used to store custom (user defined) animations. In order to store an animation properly, event source name, target name, routed event, storyboard or storyboard key must be set.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class CustomAnimation
Constructors
CustomAnimation()
Initializes a new instance of the CustomAnimation class.
Declaration
public CustomAnimation()
CustomAnimation(String, RoutedEvent, Object)
Initializes a new instance of the CustomAnimation class.
Declaration
public CustomAnimation(string sourceName, RoutedEvent routedEvent, object storyboardKey)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | sourceName | Name of the source. |
| System.Windows.RoutedEvent | routedEvent | The routed event. |
| System.Object | storyboardKey | The storyboard key. |
CustomAnimation(String, RoutedEvent, Storyboard)
Initializes a new instance of the CustomAnimation class.
Declaration
public CustomAnimation(string sourceName, RoutedEvent routedEvent, Storyboard storyboard)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | sourceName | Name of the source. |
| System.Windows.RoutedEvent | routedEvent | The routed event. |
| System.Windows.Media.Animation.Storyboard | storyboard | The storyboard. |
Properties
RoutedEvent
Gets or sets routed event used for starting user defined animation.
Declaration
public RoutedEvent RoutedEvent { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.RoutedEvent | Type: RoutedEvent |
See Also
SourceName
Gets or sets a name of the element for listening to routed event to start user defined animation.
Declaration
public string SourceName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | Type: System.String |
See Also
Storyboard
Gets or sets user defined storyboard.
Declaration
public Storyboard Storyboard { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Animation.Storyboard | Type: Storyboard |
See Also
StoryboardKey
Gets or sets a key of user defined storyboard.
Declaration
public object StoryboardKey { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object | Type: System.Object |