Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to add the capability to check a Tile in TileLayoutControl

$
0
0
This example demonstrates how to add the capability to check a Tile into TileLayoutControl.
Our TileLayoutControl doesn't support it for now. To provide this functionality in this sample, we create a Tile class descendant with a custom dependency IsChecked property. We also create a TileLayoutControl class descendant with a custom collection of objects and a public SelectTile method. Then, we override the TileLayoutControl class descendant's OnMouseRightButtonDown method. When MouseRightButtonDown is raised, we change a corresponding Tile's IsChecked property and add/remove it to/from a custom collection. If we want to change the Tile's IsChecked property in code behind, we call the SelectTile method with this Tile as a parameter.

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>