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

How to disable the resize animation for first load

1 Answer 95 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Liu Peng
Top achievements
Rank 1
Liu Peng asked on 01 Dec 2010, 05:12 AM
Hi,

I just want to disable the resize animations when first open the titleview control and remain the tile exchange animation, who to do that?

I find that if set the IsItemsAnimationEnabled property to "false", all the animations are disabled :(

Regards,
LP

1 Answer, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 03 Dec 2010, 04:52 PM
Hi Liu Peng,

 One solution is to set the IsItemsAnimationEnabled property to False, handle the LayoutUpdated event of the RadTileView and there set it to True in a dispatcher like that: 

private void myTileView_LayoutUpdated(object sender, EventArgs e)
{
    this.Dispatcher.BeginInvoke(new Action(() =>
    {
        this.myTileView.IsItemsAnimationEnabled = true;
    }));   
}
If you have further questions feel free to ask.

Kind regards,
Zarko
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
TileView
Asked by
Liu Peng
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Share this question
or