Category / Section
How to avoid TileViewItem getting maximized when a TileViewControl with only one child is present?
1 min read
ShareSpace property
Default value of the ShareSpace property is true.
When you add only one item in the TileViewControl, the TileViewItem is maximized by default. To avoid this behavior you can set the ShareSpace property of TileViewItem to false.
XAML
<syncfusion:TileViewControl x:Name="tile" > <syncfusion:TileViewItem x:Name="item" ShareSpace="False" Header="Header1"></syncfusion:TileViewItem> </syncfusion:TileViewControl>
C#
Example: item.ShareSpace = false;
The above code is used to set the ShareSpace property and the screenshot is as follows.
Figure 1: ShareSpace property of TileViewItem set to false.