Hi,
I am assigning a list of custom objects to ItemsSource of XamTileManager. I want to set specific properties on individual tiles based on some conditions. Like Hiding close button for some of the tiles, Showing different color for content of a Tile etc., How to get the collection of XamTile objects from XamTileManager so that I can apply these settings individually on each tile.
In the code I want to hide the maximize button for some of the XamTiles in the method "HideMaximizeButton()". can anyone help out please.
Attached the sample project.
Thanks
Prasad
Any help please.
Hello Prasad and thank you for your post!
You can access a tile within XamTileManager using the TileFromItem method of the control. I have modified you project to illustrate the approach. The tiles are virtualized so they will be null if you try to access them before they are rendered. For the purpose of the example I have added the hiding of the visibility on a button click so the tiles are already rendered. Please feel free to use this approach as basis and let me know if you have any other questions.
This helps me.
Thank You Maria.
I am glad that it did. And I would like to thank you for your feedback.