<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d"
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
    xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" 
    x:Class="SilverlightApplication1.MainPage"
    d:DesignWidth="640" d:DesignHeight="480">
    <Grid x:Name="LayoutRoot">
        <Grid.Resources>
            <telerik:BooleanToVisibilityConverter x:Key="converter"/>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal">
            <telerik:RadButton Content="Clear" Click="Button1_Click"/>
            <telerik:RadButton Content="Reset" Click="Button2_Click"/>
        </StackPanel>
        <telerikGrid:RadGridView Grid.Row="1" ItemsSource="{Binding Items}" AutoGenerateColumns="False"
                                 Visibility="{Binding HasItems, Converter={StaticResource converter}}">
            <telerikGrid:RadGridView.Columns>
                <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding ID}" Width="*"/>
                <telerikGrid:GridViewDataColumn DataMemberBinding="{Binding Name}" Width="*"/>
            </telerikGrid:RadGridView.Columns>
        </telerikGrid:RadGridView>
    </Grid>
</UserControl>
