This is a migrated thread and some comments may be shown as answers.

Turning off window transition

3 Answers 108 Views
Window
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 24 Mar 2010, 12:25 AM
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.

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 24 Mar 2010, 10:41 AM
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.
0
Gili Korman Golander
Top achievements
Rank 1
answered on 15 Jul 2010, 05:35 PM
Hello,

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

Thanks,
Gili
0
George
Telerik team
answered on 20 Jul 2010, 12:52 PM
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
Tags
Window
Asked by
Patrick
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Gili Korman Golander
Top achievements
Rank 1
George
Telerik team
Share this question
or