Infragistics® WPF 2016.1
About Tile Layout

The xamTileManager™ arranges normal tiles like a vertical WrapPanel container. However, you can change this default behavior by setting the TileLayoutOrder property exposed by xamTileManager's NormalModeSettings property to one of the following TileLayoutOrder enum values:

In addition to the four layout options mentioned above, each XamTile object can set the XamTileManager's attached properties - ColumnWeight and RowWeight property. These properties determine how extra space or lack thereof is assigned to the tiles. By default, a tile is sized to fit its content. However, if you set the NormalModeSettings object's HorizontalTileAreaAlignment or VerticalTileAreaAlignment properties to Stretch, xamTileManager will automatically resize tiles to fill up all the available space. If you do not set the ColumnWeight and RowWeight properties, xamTileManager distributes the space equally among all tiles. However, if you set the properties, xamTileManager only distributes the extra space to the tiles that specify a weight.

The ColumnWeight property acts as a percentage of the sum of column weights across tiles in a single row. The RowWeight property acts as a percent of the sum of row weights across tiles in a single column. For example, if you have four tiles in a single row and you set the first tile's ColumnWeight property to 1 and the second tile's ColumnWeight property to 2, xamTileManager will assign 1/3 of the extra width to the first tile and 2/3 of the extra width to the second tile. On the other hand, if xamTileManager has to reduce the size of the tiles, it resizes the first and second tile's width while maintaining the proper ratio; but it does not resize the other two tiles.

Related Topics

Add Tiles to xamTileManager

Retrieve a Reference to a Tile

Change the State of a Tile

About Saving and Loading Layouts

About Tile Templates

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.