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

Bind different tiles

4 Answers 60 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Wayde
Top achievements
Rank 1
Wayde asked on 16 Jul 2012, 08:46 PM
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.

4 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 17 Jul 2012, 06:26 AM
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.

0
Wayde
Top achievements
Rank 1
answered on 17 Jul 2012, 07:47 PM
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?
0
Accepted
Deyan
Telerik team
answered on 18 Jul 2012, 06:19 AM
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.

0
Wayde
Top achievements
Rank 1
answered on 24 Jul 2012, 07:53 PM
Thank you, that is the answer I was looking for - I did not know about Template Selectors.
Tags
DataBoundListBox
Asked by
Wayde
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Wayde
Top achievements
Rank 1
Share this question
or