alexa
menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class CustomAnimationsCollection

    Represents a list of custom animations for applying to the controls.

    Inheritance
    System.Object
    CustomAnimationsCollection
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    public class CustomAnimationsCollection : List<CustomAnimation>

    Constructors

    CustomAnimationsCollection()

    Initializes a new instance of the CustomAnimationsCollection class.

    Declaration
    public CustomAnimationsCollection()

    Methods

    FindAnimation(String, RoutedEvent)

    Finds custom animation for given source name.

    Declaration
    public CustomAnimation FindAnimation(string sourceName, RoutedEvent routedEvent)
    Parameters
    Type Name Description
    System.String sourceName

    Source name to find animation for.

    System.Windows.RoutedEvent routedEvent

    Routed event to find animation for.

    Returns
    Type Description
    CustomAnimation

    Custom animation found for the given source name and routed event.

    Initialize(OwnerTemlpateMapping[])

    Initializes each contained custom animation. Method finds source and target elements, initializes target context and adds event handlers to source.

    Declaration
    public void Initialize(params OwnerTemlpateMapping[] ownerTemplateMappings)
    Parameters
    Type Name Description
    OwnerTemlpateMapping[] ownerTemplateMappings

    Any number of structures containing owners and their templates in which source and target must be located.

    Initialize(FrameworkElement, FrameworkTemplate)

    Initializes each contained custom animation finding source and target in the given owner's template.

    Declaration
    public void Initialize(FrameworkElement owner, FrameworkTemplate template)
    Parameters
    Type Name Description
    System.Windows.FrameworkElement owner

    Owner of the template.

    System.Windows.FrameworkTemplate template

    Template in which to search for the source and target.

    InitializeResources(FrameworkElement)

    Finds storyboard references by storyboard keys for each contained custom animation within given context.

    Declaration
    public void InitializeResources(FrameworkElement resourceContext)
    Parameters
    Type Name Description
    System.Windows.FrameworkElement resourceContext

    Context within which storyboards are located.

    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved