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

Desactivate close animation for RadWindow

7 Answers 194 Views
Window
This is a migrated thread and some comments may be shown as answers.
Christophe
Top achievements
Rank 1
Christophe asked on 25 Jun 2010, 03:22 PM
Hello,

How can I desactivate window close animation for all windows of my application.
Is it possible ?

Why : some users connect to my application by Citrix client. So animation is not correctly displayed.

Any idea ?

7 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 30 Jun 2010, 11:46 AM
Hello Christophe,

 What you need to disable the Animations of the RadWindow control is to either set the AnimationManager.IsAnimationEnabled attached property to the RadWindow control to False, either to set the AnimationManager.AnimationSelector attached property to the RadWindow control to null.

Hope this helps!

Greetings,
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
Christophe
Top achievements
Rank 1
answered on 30 Jun 2010, 02:38 PM

Thanks it works when I add in my control constructor :

 

this

 

.MyWindowControl.SetValue(AnimationManager.IsAnimationEnabledProperty, false);

 

Or

 

this

 

.MyWindowControl.SetValue(AnimationManager.AnimationSelectorProperty, null);

 

 

But can I set this property for all RadWindows (not on each RadWindow) ?
(in MyPage.xam.cs or in App.xaml.cs)

0
Miroslav Nedyalkov
Telerik team
answered on 02 Jul 2010, 11:30 AM
Hi Christophe,

 You could use Implicit style and put it in App.xaml or create a custom theme and set it as Application theme.

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
Christophe
Top achievements
Rank 1
answered on 02 Jul 2010, 02:17 PM
Thanks for your reply but I'm not very good in application theme.
Can you tell me how to write this style for RadWindow with "xmlns" to use because this is not ok :

 

xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
  
<Style TargetType="telerikNavigation:RadWindow"
<Setter Property="AnimationManager.IsAnimationEnabledProperty" Value="False" /> 
</Style> 
  

0
Miroslav Nedyalkov
Telerik team
answered on 07 Jul 2010, 02:58 PM
Hello Christophe,

 The IsAnimationEnabledProperty property is currently not working. We will investigate what causes the problem. Would you please try to set the AnimationSelector property to null. This should stop the animations.

All the best,
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
Christophe
Top achievements
Rank 1
answered on 07 Jul 2010, 04:10 PM
Yes but what is the syntax do declare it in App.xaml ?
0
Miroslav Nedyalkov
Telerik team
answered on 12 Jul 2010, 09:31 AM
Hello Christophe,

 Please refer to the attached project.

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
Tags
Window
Asked by
Christophe
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Christophe
Top achievements
Rank 1
Share this question
or