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

set PreviewTileStateChanged event on databound tiles

2 Answers 11 Views
TileView
This is a migrated thread and some comments may be shown as answers.
jen
Top achievements
Rank 1
jen asked on 26 Apr 2018, 02:42 PM

Hello, 

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 Answers, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 01 May 2018, 11:21 AM
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.

Regards,
Dinko
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.
0
jen
Top achievements
Rank 1
answered on 01 May 2018, 06:06 PM
thanks! this is exactly what I needed
Tags
TileView
Asked by
jen
Top achievements
Rank 1
Answers by
Dinko
Telerik team
jen
Top achievements
Rank 1
Share this question
or