Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1300
How to apply a different style for a XamTileManager that is with in another XamTileManager ?
posted

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.

snapshot of TileMgr Sample

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

 

 

 

XamTileManagerTests2.zip
Parents
  • 22015
    posted

    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.

    XamTileManagerTests2_Modified.zip
Reply Children
No Data