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

RadMosaicHubTile Databinding

3 Answers 50 Views
HubTile
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Charaf
Top achievements
Rank 1
Charaf asked on 04 Jan 2013, 02:00 AM
Hello,
I'm trying to databing some images Urls to some RadMosaicHubTiles (and RadPictureRotatorHubtile) , and I cant figure out a way to do it correctly, can it be done via something like

 

<Controls:RadMosaicHubTile ImageSources="{Binding SongsCollection,ElementName=Uri}"/>
Any help would be appreciated,
thank you,

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 04 Jan 2013, 08:39 AM
Hello Charaf,

Thank you for writing.
Please read this blog post. It describes how data binding works in Silverlight for Windows Phone.

Kind regards,
Victor
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.
0
Charaf
Top achievements
Rank 1
answered on 04 Jan 2013, 01:00 PM
Hello,
Actually I'm familiar with it, I just can't figure out how to bind a collection of images url (from my MVVM Viewmodel) to the ImageSources property.
0
Accepted
Victor
Telerik team
answered on 04 Jan 2013, 02:34 PM
Hello Charaf,

The items in the ImageSources value should be strings (uris). In your case all objects in SongsCollection should return a Uri string when their ToString() method is called. Also why does the ElementName attribute of your binding point to an element that is called Uri. Is this the name of a XAML element on your page?

You can see examples of RadMosaicHubTile in our examples application (Telerik Examples). Its source code is available for free and is installed along with the controls. 

All the best,
Victor
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.
Tags
HubTile
Asked by
Charaf
Top achievements
Rank 1
Answers by
Victor
Telerik team
Charaf
Top achievements
Rank 1
Share this question
or