menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CustomAnimation - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    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
    System.Object
    CustomAnimation
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    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
    RoutedEvent

    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
    System.String

    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
    Storyboard

    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

    See Also
    System.Object
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved