Access to RadTileViewItem

3 posts, 1 answers
  1. Nova
    Nova avatar
    7 posts
    Member since:
    Apr 2007

    Posted 21 Feb 2012 Link to this post

    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. Answer
    Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 23 Feb 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. Nova
    Nova avatar
    7 posts
    Member since:
    Apr 2007

    Posted 23 Feb 2012 Link to this post

    Thanks, but I decided this problem differently.
Back to Top