How to disable the resize animation for first load

2 posts, 0 answers
  1. Liu Peng
    Liu Peng avatar
    18 posts
    Member since:
    Oct 2006

    Posted 30 Nov 2010 Link to this post

    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
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 03 Dec 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top