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

[Solved] How to force RadPictureRotatorHubTile to rotate?

2 Answers 70 Views
HubTile for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Morten
Top achievements
Rank 1
Morten asked on 11 Feb 2013, 06:45 PM
I have a RadPictureRotatorHubTile's PicturesSource property binded to a collection which is updated asynchronously from the web. This works, but the control does not fetch the first image until the next update is called, which is an issue when UpdateInterval is set to a high value, like 30 seconds. I would expect the control to reset itself and rotate when the collection is updated or assigned, but since it's not how can I call the update method manually?

Thanks,
Morten

2 Answers, 1 is accepted

Sort by
0
Accepted
Ivaylo Gergov
Telerik team
answered on 12 Feb 2013, 02:23 PM
Hi Morten,

Thank you for your interest.

At this point there is no acceptable way to update the hubtile manually. I admit that the described behavior would be more appropriate and I will log this as a feature request and will forward it to our developers for further consideration. I have updated your Telerik points because of your valuable feedback.

If you have any other questions or suggestions do not hesitate to contact us again.

 

Regards,
Ivaylo Gergov
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.

appropriate
appropriate
0
Glen
Top achievements
Rank 1
answered on 20 Nov 2013, 04:50 PM

I had the same issue as this and it's not fixed in the 2013 Q3 release.

After looking at the source a quick way to ensure your first image is shown regardless of the UpdateInterval you can use the following:

public class FixedRadPictureRotatorHubTile : RadPictureRotatorHubTile
{
    public FixedRadPictureRotatorHubTile()
    {
        Loaded += OnLoaded;
    }
 
    void OnLoaded(object sender, RoutedEventArgs e)
    {
        base.LoadCore();
    }
}

Tags
HubTile for XAML
Asked by
Morten
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Glen
Top achievements
Rank 1
Share this question
or