Disable animations on RadComboBox and other controls

3 posts, 1 answers
  1. Björn
    Björn avatar
    6 posts
    Member since:
    Feb 2008

    Posted 22 May 2013 Link to this post

    Hi,

    I need to disable expand/collapse animations on RadComboBoxes, GridViewFiltering popups etc, because it disturbs the end user.

    Using of telerik:AnimationManager.IsAnimationEnabled="False" (on a single control) or AnimationManager.IsGlobalAnimationEnabled = false (globally) have no effect.

    The application uses implicit themes.

    Thank you for any help.

    Björn
  2. Answer
    Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 27 May 2013 Link to this post

    Hello,

    The animation of the ComboBox comes from the Microsoft's Popup control. So, in order to disable it, you need to find it and set its PopupAnimation property to None, for example:

    this.myComboBox.Loaded += (s, e) =>
                {
                    var popup = this.myComboBox.Template.FindName("PART_Popup", this.myComboBox) as System.Windows.Controls.Primitives.Popup;
      
                    popup.PopupAnimation = System.Windows.Controls.Primitives.PopupAnimation.None;
                };


    Regards,
    Konstantina
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Björn
    Björn avatar
    6 posts
    Member since:
    Feb 2008

    Posted 28 May 2013 Link to this post

    Thank you, that's exactly the solution I need.
Back to Top