Instant load of first frame

2 posts, 0 answers
  1. Eric
    Eric avatar
    4 posts
    Member since:
    Aug 2012

    Posted 28 Aug 2012 Link to this post

    I am using the Panorama and radlivetile. I have gotten everything to load as I would like it but I am wondering, is there a way to get the first frame to load on the form load then have the interval take effect and the frames cycle from there?

  2. Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 30 Aug 2012 Link to this post

    Hello Eric,

    Thank you for writing.

    I understood that you have contacted a colleague of mine via other support channels and should already have answered your query. However, I will post the answer here so other people can benefit from it too.

    To change the current frame of a live tile, you can set the CurrentItem property as follows:
    this.photoAlbumTile.CurrentItem = this.photoAlbumTile.Items[0];

    The Items collection holds the frames of the live tile. And, the CurrentItem property should be set via code, for example, when the form loads. The above line of code is taken from the DemoAppsHub example whose source code you can find under "<install directory>\Telerik\RadControls for WinForms Q2 2012\Examples\DemoAppsHub".

    Feel free to ask if you have any further questions.

    All the best,

    Ivan Todorov
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top