<UserControl x:Class="TaskIt.Modules.Tasks.Views.List"
    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" 
    xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input" 
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
    xmlns:CustomControls="clr-namespace:CustomControls;assembly=CustomControls" 
    xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
    xmlns:Views="clr-namespace:TaskIt.Modules.Tasks.Views" 
    xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
    mc:Ignorable="d"                            
    d:DesignWidth="800" d:DesignHeight="600">

    <Grid>
        <telerik:RadDockPanel>
            <telerik:RadDockPanel Style="{StaticResource ToolbarContainerStyle}" telerik:RadDockPanel.Dock="Top">
                <CustomControls:ImageButton Content="{Binding ResourceCommandNew}" Command="{Binding NewCommand}" CommandParameter="{Binding NewItemEntityType}" ImageSource="{Binding IconNewUri}"/>
            </telerik:RadDockPanel>
            <Grid telerik:RadDockPanel.Dock="Bottom">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition MinWidth="200"/>
                    <ColumnDefinition Width="3*"/>
                </Grid.ColumnDefinitions>
                <Grid Margin="0,0,6,0">
                    <Views:TreeView/>
                </Grid>
                <Controls:GridSplitter Width="6" Opacity="0"/>
                <Border Style="{StaticResource PageContentContainerStyle}" Grid.Column="1">
                    <telerik:RadDockPanel>
                        <telerik:RadDockPanel Style="{StaticResource ToolbarContainerStyle}" telerik:RadDockPanel.Dock="Top" HorizontalAlignment="Right" VerticalAlignment="Center">
                            <StackPanel Orientation="Horizontal">
                                <telerikInput:RadComboBox ItemsSource="{Binding TaskStatuses}" SelectedItem="{Binding SelectedTaskStatus, Mode=TwoWay}" Width="95"/>
                                <Rectangle Style="{StaticResource LargeSpacerStyle}"/>
                                <Rectangle Style="{StaticResource LargeSpacerStyle}"/>
                                <Border CornerRadius="3" BorderBrush="{StaticResource NormalBorderBrush}" BorderThickness="1">
                                    <StackPanel Orientation="Horizontal">
                                        <telerik:RadRadioButton Command="{Binding ViewGridCommand}" IsChecked="{Binding IsGridView, Mode=TwoWay}" Padding="2" Width="18" Height="18">
                                            <StackPanel>
                                                <Path Data="M-18.25,-4.5416665 L-12.458333,-4.5416665" Height="1" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" Width="12"/>
                                                <Rectangle Height="2"/>
                                                <Path Data="M-18.25,-4.5416665 L-12.458333,-4.5416665" Height="1" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" Width="12"/>
                                                <Rectangle Height="2"/>
                                                <Path Data="M-18.25,-4.5416665 L-12.458333,-4.5416665" Height="1" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" Width="12"/>
                                            </StackPanel>
                                        </telerik:RadRadioButton>
                                        <telerik:RadRadioButton Command="{Binding ViewCalendarCommand}" IsChecked="{Binding IsCalendarView, Mode=TwoWay}" Padding="2" Width="18" Height="18">
                                            <StackPanel>
                                                <StackPanel Orientation="Horizontal">
                                                    <Rectangle Stroke="{StaticResource FormLabelForegroundBrush}" Width="10" Height="2"/>
                                                </StackPanel>
                                                <Rectangle Height="2"/>
                                                <StackPanel Orientation="Horizontal">
                                                    <Rectangle Stroke="{StaticResource FormLabelForegroundBrush}" Width="2" Height="2"/>
                                                    <Rectangle Width="2"/>
                                                    <Rectangle Stroke="{StaticResource FormLabelForegroundBrush}" Width="2" Height="2"/>
                                                    <Rectangle Width="2"/>
                                                    <Rectangle Stroke="{StaticResource FormLabelForegroundBrush}" Width="2" Height="2"/>
                                                </StackPanel>
                                                <Rectangle Height="2"/>
                                                <StackPanel Orientation="Horizontal">
                                                    <Rectangle Stroke="{StaticResource FormLabelForegroundBrush}" Width="2" Height="2"/>
                                                    <Rectangle Width="2"/>
                                                    <Rectangle Stroke="{StaticResource FormLabelForegroundBrush}" Width="2" Height="2"/>
                                                    <Rectangle Width="2"/>
                                                    <Rectangle Stroke="{StaticResource FormLabelForegroundBrush}" Width="2" Height="2"/>
                                                </StackPanel>
                                            </StackPanel>
                                        </telerik:RadRadioButton>
                                    </StackPanel>
                                </Border>
                            </StackPanel>
                        </telerik:RadDockPanel>
                        <CustomControls:ClippingBorder Style="{StaticResource ContentInnerContainerStyle}" telerik:RadDockPanel.Dock="Bottom">
                            <telerik:RadTransitionControl x:Name="ViewContainer"/>
                        </CustomControls:ClippingBorder>
                    </telerik:RadDockPanel>
                </Border>
            </Grid>
        </telerik:RadDockPanel>
        <telerikNavigation:RadWindow x:Name="SubmitTwitterMessageWindow" Header="{Binding ResourceTitleTweetMessage}" Closed="SubmitTwitterMessageWindowClosed">
            <StackPanel>
                <TextBox Text="{Binding TweetMessage, Mode=TwoWay}"/>
                <Rectangle Style="{StaticResource StandardSpacerStyle}"/>
                <StackPanel Orientation="Horizontal">
                    <Button Content="{Binding ResourceCommandOK}" Command="{Binding ExecuteSendToTwitterCommand}"/>
                    <Rectangle Style="{StaticResource StandardSpacerStyle}"/>
                    <Button Content="{Binding ResourceCommandCancel}" Command="{Binding CloseTwitterWindowCommand}" TabIndex="0"/>
                </StackPanel>
            </StackPanel>
        </telerikNavigation:RadWindow>
    </Grid>

</UserControl>
