Turning off window transition

4 posts, 0 answers
  1. Patrick
    Patrick avatar
    11 posts
    Member since:
    Jun 2009

    Posted 23 Mar 2010 Link to this post

    Hi,

    I am using the Telerik.Windows.Controls.RadWindow. By default it has a transition when it opens and closes. This actually gives the impression the window is opening slowly and thus the system is performing badly. What is the best way to disable this functionality? Can it be done programmatically?

    Thanks heaps.
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 24 Mar 2010 Link to this post

    Hello Patrick,

     What you need to do to remove the Transitions of the RadWindow control is to set the AnimationManager.AnimationSelector attached property to a new AnimationSelector object. You could do this in XAML in the following way:

    <telerikAnimations:AnimationManager.AnimationSelector>
        <telerikAnimations:AnimationSelector />
    </telerikAnimations:AnimationManager.AnimationSelector>
    And in C#:

    AnimationManager.SetAnimationSelector(window, new AnimationSelector());

    The AnimationManager class is in the Telerik.Windows.Controls assembly and in the Telerik.Windows.Controls.Animation namespace.

    Hope this helps!

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Gili Korman Golander
    Gili Korman Golander avatar
    14 posts
    Member since:
    Jan 2010

    Posted 15 Jul 2010 Link to this post

    Hello,

    A subsequent question - how do I turn off the animation on RadWindow.Cofirm and .Alert windows?

    Thanks,
    Gili
  5. George
    Admin
    George avatar
    1332 posts

    Posted 20 Jul 2010 Link to this post

    Hello Gili,

    What I would can suggest is to create a Style for the RadWindow control and pass it in the DialogParameters object as WindowStyle. In this style you may either set animations or stop them by setting the AnimationManager.AnimationSelector property. When you set it to null your window will have no animations enabled.

    Hope this helps.

    Greetings,
    George
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top