This is a migrated thread and some comments may be shown as answers.

Disable animation between different ViewDefinitions

1 Answer 66 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
shay keren
Top achievements
Rank 1
shay keren asked on 04 Sep 2012, 07:47 AM
HI,
I'm using RadSchedulerView and i would like to disable the animation when ViewDefinitionChanged occurs.
what should i do?


thanks

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 05 Sep 2012, 10:30 AM
Hello Shay,

The SlideAndZoom animation which is played when changing the ViewDeifintions, comes from a TransitionControl placed in the RadScheduleView ControlTemplate.  So you should modify the template in order to remove the animation.

I would suggest to use Implicit Styles to style RadControls as explained in the following article:
http://www.telerik.com/help/wpf/styling-apperance-implicit-styles-overview.html

You should go to Telerik.Windows.Controls.ScheduleView,xaml and search for "PART_TranstionControl" - the Name of the used RadTransitionControl. Then just set the Duration of the animation to "0":

   <telerik:RadTransitionControl x:Name="PART_TranstionControl" Grid.Row="1" Duration="00:00:00.000">
          <telerik:RadTransitionControl.Transition>
...

Hope this helps.

Greetings,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ScheduleView
Asked by
shay keren
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or