<UserControl x:Class="TaskIt.Modules.Dashboard.Views.TasksDueThisWeek"
    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:telerikScheduler="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Scheduler" 
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
    xmlns:activity="clr-namespace:System.Windows.Controls;assembly=ActivityControl" 
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <UserControl.Resources>
        <!--<Infrastructure:DataContextProxy x:Key="DataContextProxy"/>
        <DataTemplate x:Key="AppointmentTemplate">
            <Grid>
                <Grid Background="Transparent" DataContext="{Binding ViewModel, Source={StaticResource DataContextProxy}}">
                    <telerikNavigation:RadContextMenu.ContextMenu>
                        <telerikNavigation:RadContextMenu Opened="CalendarContextMenuOpened">                                                        
                            <telerikNavigation:RadMenuItem Header="{Binding ResourceCommandDelete}" Icon="{Binding IconDelete}" Command="{Binding DeleteCommand}" CommandParameter="{Binding SelectedItem, Mode=TwoWay}"/>
                            <telerikNavigation:RadMenuItem Header="{Binding ResourceCommandMarkCompleted}" Icon="{Binding IconMarkCompleted}" Command="{Binding MarkCompletedCommand}"/>
                        </telerikNavigation:RadContextMenu>
                    </telerikNavigation:RadContextMenu.ContextMenu>
                </Grid>
                <TextBox x:Name="PART_SubjectTextBox" Text="{Binding Path=Occurrence.Appointment.Subject}" Style="{StaticResource AppointmentTextBox}" ToolTipService.ToolTip="{Binding Path=Occurrence.Appointment.Subject}"/>
            </Grid>
        </DataTemplate>-->
    </UserControl.Resources>

    <Grid>
        <telerik:RadDockPanel>
            <StackPanel Style="{StaticResource SchedulerLegendContainerStyle}" telerik:RadDockPanel.Dock="Bottom">
                <Border Style="{StaticResource SchedulerLegendItemOuterBorderStyle}">
                    <Border BorderBrush="{StaticResource InboxBorderBrush}" Background="{StaticResource InboxBrush}" Style="{StaticResource SchedulerLegendItemInnerBorderStyle}"/>
                </Border>
                <TextBlock Text="Inbox" Style="{StaticResource SchedulerLegendItemTextStyle}"/>
                <Rectangle Style="{StaticResource SchedulerLegendItemSpacerStyle}"/>
                <Border Style="{StaticResource SchedulerLegendItemOuterBorderStyle}">
                    <Border BorderBrush="{StaticResource ActionsBorderBrush}" Background="{StaticResource ActionsBrush}" Style="{StaticResource SchedulerLegendItemInnerBorderStyle}"/>
                </Border>
                <TextBlock Text="Actions" Style="{StaticResource SchedulerLegendItemTextStyle}"/>
                <Rectangle Style="{StaticResource SchedulerLegendItemSpacerStyle}"/>
                <Border Style="{StaticResource SchedulerLegendItemOuterBorderStyle}">
                    <Border BorderBrush="{StaticResource WaitingBorderBrush}" Background="{StaticResource WaitingBrush}" Style="{StaticResource SchedulerLegendItemInnerBorderStyle}"/>
                </Border>
                <TextBlock Text="Waiting" Style="{StaticResource SchedulerLegendItemTextStyle}"/>
                <Rectangle Style="{StaticResource SchedulerLegendItemSpacerStyle}"/>
                <Border Style="{StaticResource SchedulerLegendItemOuterBorderStyle}">
                    <Border BorderBrush="{StaticResource SomedayBorderBrush}" Background="{StaticResource SomedayBrush}" Style="{StaticResource SchedulerLegendItemInnerBorderStyle}"/>
                </Border>
                <TextBlock Text="Someday" Style="{StaticResource SchedulerLegendItemTextStyle}"/>
                <Rectangle Style="{StaticResource SchedulerLegendItemSpacerStyle}"/>
                <Border Style="{StaticResource SchedulerLegendItemOuterBorderStyle}">
                    <Border BorderBrush="{StaticResource TicklersBorderBrush}" Background="{StaticResource TicklersBrush}" Style="{StaticResource SchedulerLegendItemInnerBorderStyle}"/>
                </Border>
                <TextBlock Text="Ticklers" Style="{StaticResource SchedulerLegendItemTextStyle}"/>
                <Rectangle Style="{StaticResource SchedulerLegendItemSpacerStyle}"/>
                <Border Style="{StaticResource SchedulerLegendItemOuterBorderStyle}">
                    <Border BorderBrush="{StaticResource ReferenceBorderBrush}" Background="{StaticResource ReferenceBrush}" Style="{StaticResource SchedulerLegendItemInnerBorderStyle}"/>
                </Border>
                <TextBlock Text="Reference" Style="{StaticResource SchedulerLegendItemTextStyle}"/>
            </StackPanel>
            <telerikScheduler:RadScheduler x:Name="schCalendar" AppointmentsSource="{Binding CalendarItems}" SelectedAppointment="{Binding SelectedCalendarItem, Mode=TwoWay}" 
                AppointmentTemplate="{StaticResource WidgetAppointmentTemplate}" IsBackAndForwardNavigationEnabled="False" telerik:RadDockPanel.Dock="Top"/>
        </telerik:RadDockPanel>
        <activity:Activity IsActive="{Binding IsOperationInProgress}" ActiveContent="{Binding ResourceMessageLoadingData}"/>
    </Grid>

</UserControl>