This question is locked. New answers and comments are not allowed.
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
0
Hi Wayde,
Deyan
the Telerik team
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.
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
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
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.