RadMosaicHubTile Databinding

4 posts, 1 answers
  1. Charaf
    Charaf avatar
    4 posts
    Member since:
    Jan 2011

    Posted 03 Jan 2013 Link to this post

    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,

  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 04 Jan 2013 Link to this post

    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.
  3. DevCraft banner
  4. Charaf
    Charaf avatar
    4 posts
    Member since:
    Jan 2011

    Posted 04 Jan 2013 Link to this post

    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.
  5. Answer
    Victor
    Admin
    Victor avatar
    1351 posts

    Posted 04 Jan 2013 Link to this post

    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.
Back to Top