Desactivate close animation for RadWindow

8 posts, 1 answers
  1. Christophe
    Christophe avatar
    11 posts
    Member since:
    Sep 2009

    Posted 25 Jun 2010 Link to this post

    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 ?

  2. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 30 Jun 2010 Link to this post

    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
  3. DevCraft banner
  4. Christophe
    Christophe avatar
    11 posts
    Member since:
    Sep 2009

    Posted 30 Jun 2010 Link to this post

    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)

  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 02 Jul 2010 Link to this post

    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
  6. Christophe
    Christophe avatar
    11 posts
    Member since:
    Sep 2009

    Posted 02 Jul 2010 Link to this post

    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> 
      

  7. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 07 Jul 2010 Link to this post

    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
  8. Christophe
    Christophe avatar
    11 posts
    Member since:
    Sep 2009

    Posted 07 Jul 2010 Link to this post

    Yes but what is the syntax do declare it in App.xaml ?
  9. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 12 Jul 2010 Link to this post

    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
Back to Top
DevCraft banner