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
535
Custom style for different tilestates
posted

Hello!

I currently work on a project that require us to have a diffrent style on the tiles in normal and maximized mode, much like you can do with datatemplates: ItemTemplateMinimized,ItemTemplateMaximized etc. just with styles. I cant seem to find any workaround for this.

The specific styles am targeting is igPrim:TileHeaderPresenter and  ig:XamTile

So i wonder if you guys have any ways of binding up custom styles to the respective states of the tiles?

Parents
No Data
Reply
  • 30945
    Verified Answer
    Offline posted

    Hello,

     

    Thank you for your post. I have been investigating the functionality that you are trying to achieve and I can suggest re-templating the XamTile. In the Template of the XamTile, you can change its appearance by using Storyboards in the VisualStates that the XamTile exposes. You can use Minimized,Maximized,NotMinimized and MinimizedExpanded states in order to implement different appearance of the control, based on its state.  Also you can control the Header appearance in the XamTile’s Template, by applying a style for the TileHeaderPresenter element, also using Storyboards. I have created a sample application for you that demonstrates how you can change the appearance of both XamTile and the TileHeaderPresenter in the Minimized state, using an ObjectAnimationUsingKeyFrames and a screenshot of the result.

     

    If you need any further assistance please do not hesitate to ask.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    TileManageTileAppearnceUisngVisualStates.zip
Children