Hi,
I am trying here to apply a different style for the Header of XamTiles that are inside another tile manager using HeaderPresenterStyle and other things. But not able to do so. How to achieve it, any help please.
I want different theme for the Group Tiles Finance, Admin, Sales & different theme for the tiles that are there in each group.
Attached snapshot for reference that I am mentioning about. Also attached the sample project.
I am also facing some problems here.
1. If I am assigning ItemsSource & ItemTemplate instead of creating Tile objects individually, I am not able to hit the Tile object in Mouse_PreviewUp. But If I add Tile objects by creating them each of them and adding to TileManager, I am able to achieve Tile Click via Preview_MouseUp
2. Also when assigned ItemsSource how do I suppress maximize button on each Employee Tile?
3. And how to show close button only on inner employee tiles and not on Group Tiles ?
Please provide your help.
Thanks,
Prasad
Hello Prasad,
Thank you for posting.
I have been looking into the sample application, that you have provided. I have moved the style for the TileHeaderPresenter, that you are creating in the Resources of the outer XamTileManager to the Resources of the Window. Then I have set the Key property for the two styles for the TileHeaderPresenter.
I have also created a third style for the TileHeaderPresenter. In this third style I am handling the Loaded event of the presenter. In the handler of the event I get the XamTileManager, using the Utilities class.
When I find the XamTileManager I check the name of the manager and if it is the outer manager - I assign the outer style for the TileHeaderPresenter. If it is the inner XamTileManager I am assigning the inner style for the TileHeaderPresenter.
Regarding your other questions I can suggest creating separate threads for them as this would helpful is other community members are facing the same issue.
Please find the modified sample application attached and feel free to let me know if you have any further questions on this matter.
Hi Gergana,
This helps.
Thank you for your time and the modified sample.
Hello nknprasad,
Thank you for the feedback. I am glad I was able to help.