Need 1 static tile completely different from the rest

2 posts, 0 answers
  1. Kjell
    Kjell avatar
    276 posts
    Member since:
    Jun 2010

    Posted 10 Jan 2012 Link to this post

    My application will display 4-10 (roughly) tiles, it will vary, all with very similar content.  The itemssource will be an observable collection of a custom class called "Events".  No problem there, the functionality has been very intuitive so far.

    I have also been asked to create one static tile, which is going to contain basically branding info for the application, and when expanded it will have a settings screen.  So completely different from the other tiles.  I'm trying to figure out what the best way to do this is.  So far this is what I came up with:

    * Add a dummy "Event" in my observable collection, which will always occupy the 0 spot.
    * Add all the fields for both the regular tile, and the static tile to to the content templates but by default only show the regular fields
    * In the tile loaded event (is there such a thing?), check to see if the tile holds the first event in the collection, if so, then alter the tile appropriately by hiding the normal stuff and showing the branding/settings info.

    Is this the correct approach or is there a better way? 
  2. Kjell
    Kjell avatar
    276 posts
    Member since:
    Jun 2010

    Posted 11 Jan 2012 Link to this post

    Nevermind, just noticed one of your demos does something similar, I can take it from here.
  3. DevCraft banner
Back to Top