kstanoev
4/22/2015 - 12:00 PM

A code snippet that demonstrates how to display an empty content message when the ListView has no items.

A code snippet that demonstrates how to display an empty content message when the ListView has no items.

<telerik:RadListView x:Name="listView">
	<telerik:RadListView.EmptyContent>
		<Grid Margin="20">
			<Rectangle StrokeDashArray="4 4" Stroke="Gray" StrokeThickness="2" />
			<TextBlock Text="Nothing to display" FontSize="28" HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap" />
		</Grid>
	</telerik:RadListView.EmptyContent>
</telerik:RadListView>