<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="C1_Demo.DemoUniformGrid" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml">
    <UserControl.Resources>
        <Style x:Name="BorderStyle" TargetType="Border">
            <Setter Property="CornerRadius" Value="3" />
			<Setter Property="BorderThickness" Value="3" />
			<Setter Property="BorderBrush">
				<Setter.Value>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FFBDBDBD" />
						<GradientStop Color="#FFDADADA" Offset="0.5" />
						<GradientStop Color="#FFBDBDBD" Offset="1" />
					</LinearGradientBrush>
				</Setter.Value>
			</Setter>
            <Setter Property="Margin" Value="2" />
            <Setter Property="MinHeight" Value="30" />
            <Setter Property="MinWidth" Value="30" />
            <Setter Property="VerticalAlignment" Value="Stretch" />
            <Setter Property="HorizontalAlignment" Value="Stretch" />
        </Style>
        <Style x:Name="TextBlockStyle" TargetType="TextBlock">
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="Margin" Value="10,5" />
            <Setter Property="FontWeight" Value="SemiBold" />
        </Style>
    </UserControl.Resources>
    <Border Style="{StaticResource BorderStyle}" Margin="4" BorderBrush="{x:Null}">
    <c1:C1UniformGrid x:Name="uniform">
        <Border Background="#FF005B84" Style="{StaticResource BorderStyle}">
            <TextBlock Text="0" Style="{StaticResource TextBlockStyle}" />
        </Border>
        <Border Background="#FF008B9C" Style="{StaticResource BorderStyle}">
            <TextBlock Text="1" Style="{StaticResource TextBlockStyle}" />
        </Border>
        <Border Background="#FF00ADD6" Style="{StaticResource BorderStyle}">
            <TextBlock Text="2" Style="{StaticResource TextBlockStyle}" />
        </Border>
        <Border Background="#FF497331" Style="{StaticResource BorderStyle}">
            <TextBlock Text="3" Style="{StaticResource TextBlockStyle}" />
        </Border>
        <Border Background="#FF0094D6" Style="{StaticResource BorderStyle}">
            <TextBlock Text="4" Style="{StaticResource TextBlockStyle}" />
        </Border>
        <Border Background="#FF9DCFC3" Style="{StaticResource BorderStyle}">
            <TextBlock Text="5" Style="{StaticResource TextBlockStyle}" />
        </Border>
        <Border Background="#FFA5DDFE" Style="{StaticResource BorderStyle}">
            <TextBlock Text="6" Style="{StaticResource TextBlockStyle}" />
        </Border>
        <Border Background="#FFE0EEEF" Style="{StaticResource BorderStyle}">
            <TextBlock Text="7" Style="{StaticResource TextBlockStyle}" />
        </Border>
        <Border Background="CornflowerBlue" Style="{StaticResource BorderStyle}">
            <TextBlock Text="8" Style="{StaticResource TextBlockStyle}" />
        </Border>
        <Border Background="LightYellow" Style="{StaticResource BorderStyle}">
            <TextBlock Text="9" Style="{StaticResource TextBlockStyle}" />
        </Border>
    </c1:C1UniformGrid>
    </Border>
</UserControl>