Category / Section
How to restrict the size changing behavior of TileViewItem when TileViewControl contains one visible item?
1 min read
By default, Size of the each TileViewItem is calculated based on RowCount, ColumnCount of TileViewControl. But if the TileViewControl contains only one visible item means it will occupy the whole space even if we specified RowCount and ColumCount property. This behavior can be restricted by setting ShareSpace property of TileViewItem as False. Find the code snippets and screenshots which demonstrate the same,
<syncfusion:TileViewControl Margin="0 20 0 0" x:Name="tileview" RowCount="3" ColumnCount="3"> <syncfusion:TileViewItem Header="TileItem1" ShareSpace="False" Content="Content of TileViewItem"/> </syncfusion:TileViewControl>
Output:
The following screenshot illustrates how the arrangement of TileViewItem differs based on Sharespace property,
ShareSpace = true
ShareSpace = false
Sample link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/TileViewControl_ShareSpace1580183582.zip