Telerik UI for Windows Phone by Progress

The Preserve Space for Collapsed Children feature allows the RadUniformGrid control to allocate cells even for child elements, which have their Visibility set to Collapsed. To control this behavior you have to use the PreserveSpaceForCollapsedChildren boolean property. Its default value is True, which means that an element will be placed in a cell, even if its Visibility is set to Collapsed.

Here is a snapshot of such a RadUniformGrid:

Uniform Grid-Features-Collapsed Children-01

If you set this property to False, the collapsed element won't take space in the grid, and the next visible one will be displayed in the cell.

CopyXAML
<telerikPrimitives:RadUniformGrid x:Name="radUniformGrid" NumberOfColumns="2" NumberOfRows="2" PreserveSpaceForCollapsedChildren="False">
<TextBlock Text="1" HorizontalAlignment="Center" VerticalAlignment="Center" />
<TextBlock Text="2" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed" />
<TextBlock Text="3" HorizontalAlignment="Center" VerticalAlignment="Center" />
<TextBlock Text="4" HorizontalAlignment="Center" VerticalAlignment="Center" />
</telerikPrimitives:RadUniformGrid>