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

Access to RadTileViewItem

2 Answers 64 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Nova
Top achievements
Rank 1
Nova asked on 21 Feb 2012, 02:33 PM
Hi,

I try to use TileView control and fill it by ItemsSource. In this case, how can I get RadTileViewItem to configure it internal controls? TileView.Items collection contains viewmodels (not RadTileViewItems). I need something like TileView.VisibleContainers property. but it is internal.

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Stanoev
Telerik team
answered on 23 Feb 2012, 02:26 PM
Hi Aleksey,

RadTileView inherits from ItemsControl and automatically benefits from its ItemContainerGenerator. Using the ItemContainerGenerator you can retrieve the RadTileViewItems in the following manner:

private void GetContainerFromItem(object item)
{
    RadTileViewItem container = this.myTileView.ItemContainerGenerator.ContainerFromItem(item) as RadTileViewItem;
}
 
private void GetContainerFromIndex(int index)
{
    RadTileViewItem container = this.myTileView.ItemContainerGenerator.ContainerFromIndex(index) as RadTileViewItem;
}

Give it a try and let me know how it works for you.

On a separate note, I'd like to let you know that recently we had our official 2012 Q1 release. There are 5 brand new controls that we included in this release:
- Diagrams (Beta)
- GanttView (CTP)
- TimeLine
- ListBox (Beta)
- DataBar

When you have time, you can give them a try. Any feedback will be greatly appreciated. Thank you for your cooperation.

  All the best,
Kiril Stanoev
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Nova
Top achievements
Rank 1
answered on 23 Feb 2012, 02:53 PM
Thanks, but I decided this problem differently.
Tags
TileView
Asked by
Nova
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Nova
Top achievements
Rank 1
Share this question
or