How to Change the Animation of Expanding

Grids for WPF Forum

Posted 5 years ago by lik
Version: 13.2.0592
Avatar

When expanding  or collapsing categories or properties, the animation is very slowly.How can I change?

Comments (1)

Answer - Posted 5 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

It runs at a decent speed when we run it.  This is part of what is in the template for PropertyGridDataAccessorItem:

<shared:AnimatedExpanderDecorator x:Name="expander" IsExpanded="{TemplateBinding IsExpanded}"
		CollapseDuration="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(themes:ExpanderThemeProperties.CollapseDuration)}"
		ExpandDuration="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(themes:ExpanderThemeProperties.ExpandDuration)}">
	<ItemsPresenter  />
</shared:AnimatedExpanderDecorator>

I believe you could probably make an implicit style in your app.Resources that targets PropertyGridDataAccessorItem and sets the attached properties for CollapseDuration and ExpandDuration to something small.  That should affect duration.


Actipro Software Support

The latest build of this product (v2019.1 build 0681) was released 18 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.