<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="ClearStyle.MainPage" Loaded="UserControl_Loaded" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480" FontFamily="Segoe UI" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" 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">
    <UserControl.Resources>
        <!-- Border Brush -->
        <LinearGradientBrush x:Key="BorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFA3AEB9" Offset="0" />
            <GradientStop Color="#FF8399A9" Offset="0.375" />
            <GradientStop Color="#FF718597" Offset="0.375" />
            <GradientStop Color="#FF617584" Offset="1" />
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="buttBackBrush" StartPoint="0,0" EndPoint="0,1">
            <GradientStop Color="#FFE3EFFF" Offset="0" />
            <GradientStop Color="#FFC4DDFF" Offset="0.367" />
            <GradientStop Color="#FFADD1FF" Offset="0.377" />
            <GradientStop Color="#FFC0DBFF" Offset="1" />
        </LinearGradientBrush>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Border BorderThickness="1" Height="28" HorizontalAlignment="Stretch" BorderBrush="{StaticResource BorderBrush}" Background="{StaticResource buttBackBrush}">
            <StackPanel Orientation="Horizontal">
                <RadioButton x:Name="btnDay" VerticalAlignment="Center" Margin="2,2,10,2" Content="Day" c1:CommandExtensions.CommandTarget="{Binding ElementName=sched1}" c1:CommandExtensions.Command="sched:C1Scheduler.ChangeStyleCommand" c1:CommandExtensions.CommandParameter="{Binding Path=OneDayStyle, ElementName=sched1}" />
                <RadioButton x:Name="btnWorkWeek" VerticalAlignment="Center" Margin="2,2,10,2" Content="Work Week" c1:CommandExtensions.CommandTarget="{Binding ElementName=sched1}" c1:CommandExtensions.Command="sched:C1Scheduler.ChangeStyleCommand" c1:CommandExtensions.CommandParameter="{Binding Path=WorkingWeekStyle, ElementName=sched1}" />
                <RadioButton x:Name="btnWeek" VerticalAlignment="Center" Margin="2,2,10,2" Content="Week" c1:CommandExtensions.CommandTarget="{Binding ElementName=sched1}" c1:CommandExtensions.Command="sched:C1Scheduler.ChangeStyleCommand" c1:CommandExtensions.CommandParameter="{Binding Path=WeekStyle, ElementName=sched1}" />
                <RadioButton x:Name="btnMonth" VerticalAlignment="Center" Margin="2,2,10,2" Content="Month" c1:CommandExtensions.CommandTarget="{Binding ElementName=sched1}" c1:CommandExtensions.Command="sched:C1Scheduler.ChangeStyleCommand" c1:CommandExtensions.CommandParameter="{Binding Path=MonthStyle, ElementName=sched1}" />
                <RadioButton x:Name="btnTimeLine" VerticalAlignment="Center" Margin="2,2,10,2" Content="Time Line" c1:CommandExtensions.CommandTarget="{Binding ElementName=sched1}" c1:CommandExtensions.Command="sched:C1Scheduler.ChangeStyleCommand" c1:CommandExtensions.CommandParameter="{Binding Path=TimeLineStyle, ElementName=sched1}" />
            </StackPanel>
        </Border>
        <c1:C1Scheduler x:Name="sched1" Margin="0 -1 0 0" StyleChanged="sched1_StyleChanged" BorderThickness="1" Grid.Row="1" BorderBrush="{StaticResource BorderBrush}" />
    </Grid>
</UserControl>