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

Instant load of first frame

1 Answer 67 Views
Panorama
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 29 Aug 2012, 12:32 AM
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?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 30 Aug 2012, 06:19 AM
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 >>
Tags
Panorama
Asked by
Eric
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Share this question
or