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

It is possible to make "selectionchanged" animation?

1 Answer 102 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Eran
Top achievements
Rank 1
Eran asked on 03 Sep 2009, 07:42 AM
Hello,
I wanted to know if it's possible to make an animation when selected tab changed.

If it is, there is an animation sample same as after I press "View Code" button in the demos section?
It is possible to put it in the selectionchanged animation?

BR, Eran

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 03 Sep 2009, 01:07 PM
Hi Eran,

The problem with animating the content is that the selected content in the TabControl is changed right after the menu is selected and there is never a second object that you can animate.

One possibility here is to use a WritableBitmap in which to draw the old content and then animate this WritableBitmap. This though will not be trivial because it will most probably involve inheriting the TabControl and changing its ControlTemplate to add the Image and plug in the logic with the WritableBitmap.

In short - it is possible but it will involve a lot of custom code.

Best wishes,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TabControl
Asked by
Eran
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or