RadExpander animation with Windows11 theme

1 Answer 62 Views
Expander
François
Top achievements
Rank 1
François asked on 21 Aug 2023, 04:09 PM

Hi Support team,

even if animation is disabled, the expander is still showing some sort of animation when Windows 11 theme is applied.

This can be reproduced with Telerik samples.

Is there a way to remove that animation entirely so that the content gets displayed immidiateley ?

François

1 Answer, 1 is accepted

Sort by
0
Accepted
Dinko
Telerik team
answered on 24 Aug 2023, 02:28 PM

Hello François,

To remove the fade-in/fade-out animation of the RadExpander control, you can extract the ControlTemplate of RadExpander for the Windows11 theme, located in the Telerik.Windows.Controls.xaml file. In the ControlTemplate, you can remove the FadeOutContentBorderStoryboard and FadeInContentBorderStoryboard animations which are located in the IsExpanded trigger.

You can see this at the attached sample solution.

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

François
Top achievements
Rank 1
commented on 25 Aug 2023, 09:07 AM

Well done.

Thanks for this top notch answer !

Tags
Expander
Asked by
François
Top achievements
Rank 1
Answers by
Dinko
Telerik team
Share this question
or