Disable animation between different ViewDefinitions

2 posts, 0 answers
  1. shay keren
    shay keren avatar
    14 posts
    Member since:
    May 2006

    Posted 04 Sep 2012 Link to this post

    HI,
    I'm using RadSchedulerView and i would like to disable the animation when ViewDefinitionChanged occurs.
    what should i do?


    thanks
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 05 Sep 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top