I am using a RadPanelBar control, and when RadPanelBar expands and collapses, it run very fast. How to adjust the speed of RadPanelBar expand and collapse?
1 Answer, 1 is accepted
0
Tina Stancheva
Telerik team
answered on 24 Jan 2011, 05:24 PM
Hi lv,
Currently this is not a supported scenario. However, we have logged this as a feature request in our PITS, where you can vote for it thus increasing its priority.
In the meantime, you can edit the ControlTemplate of the RadPanelBarItem in ExpressionBlend (following the approach described here) and modify the default Storyboard in the IsExpanded trigger as you need to:
<TriggerProperty="IsExpanded"
Value="True">
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimationDuration="0:0:0.2"
From="0"
To="1"
Storyboard.TargetProperty="Opacity"
Storyboard.TargetName="ItemsContainer"/>
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimationDuration="0"
To="1"
Storyboard.TargetProperty="Opacity"
Storyboard.TargetName="arrow"/>
<DoubleAnimationDuration="0:0:0.2"
From="0"
To="0"
Storyboard.TargetProperty="Opacity"
Storyboard.TargetName="ItemsContainer"/>
</Storyboard>
</BeginStoryboard>
</Trigger.ExitActions>
<SetterProperty="Opacity"
TargetName="SelectVisual"
Value="1"/>
<SetterProperty="LayoutTransform"
TargetName="arrow">
<Setter.Value>
<TransformGroup>
<RotateTransformAngle="180"/>
</TransformGroup>
</Setter.Value>
</Setter>
<SetterProperty="Visibility"
TargetName="ItemsContainer"
Value="Visible"/>
</Trigger>
All the best,
Tina Stancheva
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>