There are a couple of ways that you can manage the TileState of your items and it depends on your requirement which one you'll use. Just to be sure - what do you mean by "created dynamically" - do you create RadTileViewItems in code behind and add them to your RadTileView or you set a collection of business items as an ItemsSource of your RadTileView? If it's the first case - you can directly set the TileState when you create the item and if it's the second case (which I guess it is) you have a couple of possible solutions:
- if you want to always
have a MaximizedItem you can set the MaximizeMode property of the RadTileView to One and this way on loading the first
item in your collection will automatically maximize.
- if you want to be able to change the TileState of an item by a property in your business item you'll have to bind this property to the TileState property with a style binding. And here you have two choices - you can add a TileState property in your object or bind the TileState to any of your properties with a converter.
I've attached a sample project that shows this cases so could you please examine it and if you have more questions don't hesitate to ask.
All the best,
the Telerik team
Sharpen your .NET Ninja skills
! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>