This is a migrated thread and some comments may be shown as answers.

Need 1 static tile completely different from the rest

1 Answer 19 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Kjell asked on 11 Jan 2012, 12:31 AM
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? 

1 Answer, 1 is accepted

Sort by
0
Kjell
Top achievements
Rank 1
answered on 11 Jan 2012, 10:31 PM
Nevermind, just noticed one of your demos does something similar, I can take it from here.
Tags
TileView
Asked by
Kjell
Top achievements
Rank 1
Answers by
Kjell
Top achievements
Rank 1
Share this question
or