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

RadCycleHubTile -- which element is active?

6 Answers 15 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.
Eugene
Top achievements
Rank 1
Eugene asked on 15 Mar 2014, 09:19 PM
Hey guys:

So I've got a RadCycleHubTile control bound to an ObservableCollection, and set to not cycle randomly. I need to know which of the elements in the ObservableCollection is currently being displayed. Is there a way for me to do that?

Thanks!

P.S. How come HubTile isn't derived from an ItemsControl? Then we'd get a SelectedItem property, which would be very much in line with what the control seems to do... just curious.

6 Answers, 1 is accepted

Sort by
0
Eugene
Top achievements
Rank 1
answered on 16 Mar 2014, 10:14 PM
Ok, I figured out one way to do this. Namely, to manually find the visualchild of the type I expect to be embedded within the RadCycleHubTile, and then get to its DataContext. 

The problem is if I remove the data context of the item being displayed from ItemsSource (and even if I reset ItemsSource by setting it to null then back to the modified list), the item displayed continues being displayed. 

Is there a way for me to force the control to change the displayed item to the next item in the ItemsSource array?
0
Victor
Telerik team
answered on 17 Mar 2014, 07:28 AM
Hi Eugene,

I am afraid that this is not the intended usage of a hub tile. A tile does not support the concept of selection. It is more like a button that displays some dynamic content. It is not a selector by design.

Currently there is no supported way to achieve the desired behavior with any hub tile.

Thanks for the feedback.
We will consider whether there is something we can do on our side to support this scenario.
Please write again if you have more questions.

Regards,
Victor
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Eugene
Top achievements
Rank 1
answered on 17 Mar 2014, 08:20 AM
Hi Viktor:

Thanks for your response. So to give you a bit more context, I'm essentially trying to allow the user to drag one of the displayed tiles out into a different location. Is there a different control I should use?

Is there a way for me to get to the source code of RadCycleHubTile? Then I can just modify it to do what I want...

Thanks!
0
Victor
Telerik team
answered on 19 Mar 2014, 08:42 AM
Hello Eugene,

In the other thread about the tiles you mentioned that you downloaded the source. Feel free to ask us if you need guidance with its modification or if you need assistance with something else.

Regards,
Victor
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Eugene
Top achievements
Rank 1
answered on 19 Mar 2014, 08:53 AM
Yup, should be good now. Trying to get just the source of the CycleHubControl to build without pulling the rest of the sources and xaml themes into the project is taking a bit of time, but I think I can manage. :)
0
Victor
Telerik team
answered on 19 Mar 2014, 03:05 PM
Awesome, we're on standby if you need help :).

Regards,
Victor
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
Tags
HubTile
Asked by
Eugene
Top achievements
Rank 1
Answers by
Eugene
Top achievements
Rank 1
Victor
Telerik team
Share this question
or