set PreviewTileStateChanged event on databound tiles

3 posts, 0 answers
  1. jen
    jen avatar
    79 posts
    Member since:
    Jun 2009

    Posted 26 Apr 2018 Link to this post


    I have a RadTileView that is bound to a list of items, so that the tiles are automatically generated. I need to set the PreviewTileStateChanged and TileStateChanged events on the generated tiles. How can I do this?


    I can't find any sort of 'tile created' event, and I can't set events in the ItemContainerStyle

  2. Dinko
    Dinko avatar
    1109 posts

    Posted 01 May 2018 Link to this post

    Hi jen,

    In data bound scenario in order to get the RadTileViewItems using the business object you can use the ItemContainerGenerator property of the RadTileView. More specifically you can use the ContainerFromItem() method. Basically, the Items collection property of the RadTileView control is populated with business objects. Using the mentioned method you can get the container for the corresponding object.

    I have prepared a sample project which demonstrates this approach.

    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. jen
    jen avatar
    79 posts
    Member since:
    Jun 2009

    Posted 01 May 2018 in reply to Dinko Link to this post

    thanks! this is exactly what I needed
Back to Top