Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Expander > Animation

Answered Animation

Feed from this thread
  • Oksana avatar

    Posted on Mar 17, 2011 (permalink)

    Hello,

    can you please show an example of how to change the speed of transition animation when it is enabled for the extender control(telerik:AnimationManager.IsAnimationEnabled="True")

    Thank you

    Reply

  • Answer Tina Stancheva Tina Stancheva admin's avatar

    Posted on Mar 19, 2011 (permalink)

    Hi Oksana,

    With the latest official release you can take advantage of the Telerik AnimationManager to control the RadExpander animations in WPF:
    <Style TargetType="telerik:RadExpander">
        <Setter Property="telerik:AnimationManager.AnimationSelector">
            <Setter.Value>
                <telerik:AnimationSelector>
                    <telerik:ExpanderExpandCollapseAnimation
                                    AnimationName
    ="Expand"
                 Direction="In"
                 TargetElementName="Content"
                 SpeedRatio="0.2" />
                    <telerik:ExpanderExpandCollapseAnimation
                                    AnimationName="Collapse"
                Direction="Out"
                TargetElementName="Content"
                SpeedRatio="0.2" />
                </telerik:AnimationSelector>
            </Setter.Value>
        Setter>
    </Style>
    You can control the speed of the animation through the SpeedRatio property. I attached a sample project to help you get started. Let us know if we can further assist you.

    All the best,
    Tina Stancheva
    the Telerik team

    Reply

  • Oksana avatar

    Posted on Mar 21, 2011 (permalink)

    Thank you, Tina.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Expander > Animation
Related resources for "Animation"

WPF Expander Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]