Bind different tiles

5 posts, 1 answers
  1. Wayde
    Wayde avatar
    17 posts
    Member since:
    Jun 2012

    Posted 16 Jul 2012 Link to this post

    Is there any way to use the DataBoundListBox in order to bind different hubtiles? For instance I have 2 RadHubTiles, 1 MosaicHubTile and a RotatorHubTile, and I would like these laid out in order to create a menu. I want to use the DataBoundListBox control so that I can reorder the items as well as get the animation effects.

  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 17 Jul 2012 Link to this post

    Hi Wayde,

    You can put RadHubTile instances in a list box control. On of our hubtile examples shows exactly this scenario (the horizontally orientet food tiles).

    Currently, however, you cannot reorder hubtiles as seen in the native Windows Phone home screen experience. You can use the Item Reorder functionality in DataBoundListBox anyway, but does not implement the same behavior seen on the Windows Phone home screen.

    I hope this helps.

    Kind regards,
    Deyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Wayde
    Wayde avatar
    17 posts
    Member since:
    Jun 2012

    Posted 17 Jul 2012 Link to this post

    Hi, thanks for the answer. I know how to bind just RadHubTiles - but is there any way that I can have a DataBoundListBox that binds RadHubTiles, MosaicHubTiles and RotatorHubTiles at the same time?
  5. Answer
    Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 18 Jul 2012 Link to this post

    Hello Wayde,

    Thanks for getting back to me.

    I am not quite sure that I correctly understand the question. DataBoundListBox is a control that can be bound to any IEnumerable source and display its contents via the defined DataTemplate for its items. Provided that each data item from your source can be used as a data source for a HubTile instance, be it Mosaic, Rotator, etc., you can define different DataTemplates for the list box items that contain the corresponding hub tiles and, by using a Template Selector, display them accordingly.

    I hope this helps.

    Regards,
    Deyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Wayde
    Wayde avatar
    17 posts
    Member since:
    Jun 2012

    Posted 24 Jul 2012 Link to this post

    Thank you, that is the answer I was looking for - I did not know about Template Selectors.
Back to Top
DevCraft banner