Infragistics® WPF 2016.1
About Tile Templates

The xamTileManager™ exposes four item template properties, ItemTemplate, ItemTemplateMaximized, ItemTemplateMinimized and ItemTemplateMinimizedExpanded that correspond to the four tile states, normal, maximized, minimized and minimized-expanded, respectively. You do not have to write any code that switches templates based on a tile's state. Instead, you can create a data template for each state and set the corresponding item template property and xamTileManager automatically uses the correct template based on a tile's state.

In addition to the item template properties exposed by xamTileManager, each XamTile object also exposes four content template properties, ContentTemplateResolved, ContentTemplateMaximized, ContentTemplateMinimized and ContentTemplateMinimizedExpanded. The decision between setting the item template properties and the content template properties depends on whether you are binding xamTileManager to data or adding data items directly to xamTileManager's Items collection. If you are binding xamTileManager to data, you can use the item template properties exposed by xamTileManager or the content template properties exposed by the Tile objects. However, if you are adding data items directly to xamTileManager's Items collection, you must use the XamTile object's content template properties.

The xamTileManager automatically displays the proper item template based on a tile's state. You do not have to write any code to switch between templates. However, you should be aware of the impact if you do not define all four item templates.

For an example of binding xamTileManager to data and using the various item templates, see Data Binding and Item Templates.

Related Topics

About Tile Layout

Add Tiles to xamTileManager

Retrieve a Reference to a Tile

Change the State of a Tile

About Saving and Loading Layouts

Binding xamTileManager to Data

Explicitly Arrange Tiles

Allow End Users to Close Tiles

Restrict a XamTile's Size

Modify Tile Behaviors in Normal Mode

Modify Tile Behaviors in Maximized Mode

About Animations

 

 


Copyright © 2008-2016 Infragistics, Inc. All rights reserved.

E-mail your feedback on this topic.