<UserControl x:Class="BeWo.Scheduler.View.ServiceRecordScheduler"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
             xmlns:dxsch="http://schemas.devexpress.com/winfx/2008/xaml/scheduler"
             xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
             xmlns:dxschd="clr-namespace:DevExpress.Xpf.Scheduler.Drawing;assembly=DevExpress.Xpf.Scheduler.v13.1"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="600" dx:ThemeManager.ThemeName="Office2010Black">
    <UserControl.Resources>
        <!--DayViewVerticalCellContentTemplate-->
        <DataTemplate x:Key="DayViewThemeKey_DayViewVerticalCellContentTemplate_Custom">
            <Rectangle MinHeight="15" HorizontalAlignment="Stretch" UseLayoutRounding="True" />
        </DataTemplate>

        <Style x:Key="DayViewThemeKey_CellStyle_Custom" TargetType="dxschd:VisualTimeCell">
            <Setter Property="AppointmentPadding" Value="1" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="dxschd:VisualTimeCell">
                        <Grid dxsch:SchedulerControl.HitTestType="Cell" IsHitTestVisible="True">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="26" />
                            </Grid.RowDefinitions>
                            <dxschd:CellBorder DefaultBorderThickness="1,0,0,0" Background="{TemplateBinding Background}" ElementPosition="{Binding Path=(dxschd:SchedulerItemsControl.ElementPosition), RelativeSource={RelativeSource TemplatedParent}}" BorderBrush="{Binding Content.Brushes.CellBorderDark, RelativeSource={RelativeSource TemplatedParent}}" />
                            <dxschd:CellBorder DefaultBorderThickness="0,0,0,1" BorderBrush="{TemplateBinding BorderBrush}" ElementPosition="{Binding Path=(dxschd:SchedulerItemsControl.ElementPosition), RelativeSource={RelativeSource TemplatedParent}}" Background="Transparent" />
                            <dx:XPFContentControl Grid.Row="0" x:Name="PART_CONTENT" Content="{Binding}" ContentTemplate="{StaticResource DayViewThemeKey_DayViewVerticalCellContentTemplate_Custom}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="BackgroundBrushSelector">
                <Setter.Value>
                    <dxschd:DayViewCellBackgroundBrushSelector />
                </Setter.Value>
            </Setter>
            <Setter Property="BorderBrushSelector">
                <Setter.Value>
                    <dxschd:DayViewTimeCellBorderBrushSelector />
                </Setter.Value>
            </Setter>
        </Style>
        <DataTemplate x:Key="DayViewThemeKey_DayViewVerticalCellContentTemplate">
            <Rectangle MinHeight="1"
            HorizontalAlignment="Stretch" />
        </DataTemplate>
    </UserControl.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <dxsch:SchedulerControl x:Name="scheduler" VerticalAlignment="Stretch" GroupType="None" ShowBorder="True">
            <dxsch:SchedulerControl.DayView>
                <dxsch:DayView CellStyle="{StaticResource DayViewThemeKey_CellStyle_Custom}">
                </dxsch:DayView>
            </dxsch:SchedulerControl.DayView>
            <dxsch:SchedulerControl.Storage>
                <dxsch:SchedulerStorage>
                    <dxsch:SchedulerStorage.AppointmentStorage>
                        <dxsch:AppointmentStorage>
                            <dxsch:AppointmentStorage.Mappings>
                                <dxsch:AppointmentMapping Start="StartDate" 
																													End="EndDate" 
																													Label="Label"
																													Subject="Subject" />
                            </dxsch:AppointmentStorage.Mappings>
                            <dxsch:AppointmentStorage.Labels>
                                <dxsch:AppointmentLabelCollection>
                                    <dxsch:AppointmentLabel DisplayName="Termin" MenuCaption="Termin" Color="White"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Aufgabe" MenuCaption="Aufgabe" Color="#FFC2BE"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Urlaub" MenuCaption="Urlaub" Color="#A8D5FF"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Krankheit" MenuCaption="Krankheit" Color="#C1F49C"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Zeiterfassung" MenuCaption="Zeiterfassung" Color="#F3E4C7"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Resource1" MenuCaption="Resource1" Color="#F4CE93"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Artistic Gymnastics" MenuCaption="Artistic Gymnastics" Color="#C7F4FF"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Canoe" MenuCaption="Canoe" Color="#CFDB98"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Kayak" MenuCaption="Kayak" Color="#E0CFE9"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Wrestling" MenuCaption="Wrestling" Color="#8DE9DF"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Equestrianism" MenuCaption="Equestrianism" Color="#FFF7A5"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Sailing" MenuCaption="Sailing" Color="#E1A4A0"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Swimming" MenuCaption="Swimming" Color="#8AB7E1"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Diving" MenuCaption="Diving" Color="#A3D67E"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Handball" MenuCaption="Handball" Color="#D5C6A9"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Gymnastics" MenuCaption="Gymnastics" Color="#D6B075"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Athletics" MenuCaption="Athletics" Color="#A9D6E1"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Shooting" MenuCaption="Shooting" Color="#B1BD7A"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Archery" MenuCaption="Archery" Color="#C2B1D5"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Cycling" MenuCaption="Cycling" Color="#6FCBC1"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Water Polo" MenuCaption="Water Polo" Color="#E1D987"></dxsch:AppointmentLabel>
                                    <dxsch:AppointmentLabel DisplayName="Volleyball" MenuCaption="Volleyball" Color="#C38682"></dxsch:AppointmentLabel>
                                </dxsch:AppointmentLabelCollection>
                            </dxsch:AppointmentStorage.Labels>
                        </dxsch:AppointmentStorage>
                    </dxsch:SchedulerStorage.AppointmentStorage>
                </dxsch:SchedulerStorage>
            </dxsch:SchedulerControl.Storage>

        </dxsch:SchedulerControl>
            <dxe:DateNavigator Grid.Column="1"
													   		VerticalAlignment="Stretch"
																x:Name="dateNavigator"
																HighlightSpecialDates="True"
																ShowTodayButton="True"
																ShowWeekNumbers="True"
																WeekNumberRule="FirstFourDayWeek">
                <dxe:DateNavigator.StyleSettings>
                    <dxsch:SchedulerDateNavigatorStyleSettings SchedulerControl="{Binding ElementName=scheduler}">
                    </dxsch:SchedulerDateNavigatorStyleSettings>
                </dxe:DateNavigator.StyleSettings>
            </dxe:DateNavigator>

    </Grid>
</UserControl>
