<?xml version="1.0" encoding="utf-8"?>
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:c="clr-namespace:System.Windows.Controls;assembly=PresentationFramework" 
                    xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
                    xmlns:res="clr-namespace:C1.WPF.GanttView.Resources" 
                    xmlns:c1GanttView="clr-namespace:C1.WPF.GanttView" 
                    xmlns:system="clr-namespace:System;assembly=mscorlib">

    <c1:VisibilityConverter x:Key="VisibilityConverter"/>
    <res:Resources x:Key="Resources" />
    <c1GanttView:CalendarTodayCommand x:Key="TodayCommand"/>

    <Style x:Key="MenuIcon" TargetType="Grid">
        <Setter Property="Width" Value="20"/>
        <Setter Property="Height" Value="16"/>
    </Style>

    <Style x:Key="SymbolText" TargetType="TextBlock">
        <Setter Property="FontFamily" Value="Segoe UI Symbol"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Foreground" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ViewHeaderForeground}"/>
    </Style>
     
    <Style x:Key="DropDownMenuItem" TargetType="{x:Type c1:C1MenuItem}">
        <Setter Property="CommandParameter" Value="{Binding RelativeSource={RelativeSource TemplatedParent}}" />
    </Style>

    <Style x:Key="CheckableDropDownMenuItem" TargetType="{x:Type c1:C1MenuItem}" BasedOn="{StaticResource DropDownMenuItem}">
        <Setter Property="IsCheckable" Value="True"/>
    </Style>

    <Style x:Key="ToolBarSeparator" TargetType="{x:Type c1:C1Separator}">
        <Setter Property="Background" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ViewHeaderForeground}"/>
        <Setter Property="Orientation" Value="Vertical"/>
    </Style>

    <Style x:Key="ContextMenuSeparator" TargetType="{x:Type Separator}">
        <Setter Property="Height" Value="2"/>
        <Setter Property="Visibility" Value="{Binding ShowCellMenu,Converter={StaticResource VisibilityConverter}}"/>
    </Style>

    <!--C1GanttView-->
    <Style TargetType="c1GanttView:C1GanttView">
        <Setter Property="Background" Value="White"/>
        <Setter Property="HighlightBackColor" Value="#A0BADDE9"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c1GanttView:C1GanttView">
                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Grid>
                            <!-- toolstrip across the top, content below: grid, splitter, chart -->
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="300" />
                                <ColumnDefinition Width="5" />
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>
                            <!-- tool strip across the top -->
                            <ToolBar Grid.ColumnSpan="3" x:Name="MainToolBar" ToolBarTray.IsLocked="True" Height="{TemplateBinding ToolbarHeight}" Visibility="{TemplateBinding ShowToolbar, Converter={StaticResource VisibilityConverter}}" Background="{TemplateBinding ToolbarBackColor}">
                                <ToolBar.DataContext>
                                    <c1GanttView:ToolBarViewModel />
                                </ToolBar.DataContext>
                                <!--save/load-->
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding LoadCommand}" ToolTipService.ToolTip="{Binding ToolTip_Load,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="100" Height="100">
                                                    <Canvas.RenderTransform>
                                                        <TranslateTransform X="-24" Y="-10"/>
                                                    </Canvas.RenderTransform>
                                                    <Path Stroke="{TemplateBinding ViewHeaderForeground}" StrokeThickness="7" Data="M127.913,52.8C127.351,51.999,126.434,51.523,125.457,51.523L51.835,51.523C50.571,51.523,49.443,52.314,49.014,53.502L33.696,95.828C33.364,96.746 33.501,97.77 34.061,98.57 34.623,99.371 35.54,99.847 36.517,99.847L110.138,99.847C111.401,99.847,112.529,99.056,112.959,97.868L128.276,55.542C128.61,54.624,128.474,53.6,127.913,52.8z"/>
                                                    <Path Fill="{TemplateBinding ViewHeaderForeground}" Data="M23.802,96.72L41.985,46.48C42.844,44.104,45.1,42.522,47.628,42.522L115.847,42.522 115.847,37.022C115.847,33.709,113.16,31.022,109.847,31.022L67.202,31.022 57.286,21.105C56.16,19.979,54.635,19.347,53.043,19.347L26.463,19.347C23.15,19.347,20.463,22.034,20.463,25.347L20.463,91.347C20.462,93.705,21.825,95.738,23.802,96.72z"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding SaveCommand}" ToolTipService.ToolTip="{Binding ToolTip_Save,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <TextBlock Text="&#xE105;" FontSize="14" Style="{StaticResource SymbolText}"/>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1Separator Style="{StaticResource ToolBarSeparator}"/>
                                <!--undo/redo-->
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding UndoCommand}" ToolTipService.ToolTip="{Binding ToolTip_Undo,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <TextBlock Text="&#xE10E;" Style="{StaticResource SymbolText}"/>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding RedoCommand}" ToolTipService.ToolTip="{Binding ToolTip_Redo,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <TextBlock Text="&#xE10D;" Style="{StaticResource SymbolText}"/>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1Separator Style="{StaticResource ToolBarSeparator}"/>
                                <!--grid columns-->
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowGridColumnsDialogCommand}" ToolTipService.ToolTip="{Binding ToolTip_GridColumns,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="16" Height="16">
                                                    <Path Data="M 5 15 H 8 V 2 H 5 v 15 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="M 14 2 H 11 10 7 v 13 h 3 1 3 V 2 z m -1 7 v 2 H 11 V 9 h 2 z M 8 5 V 3 h 2 V 5 H 8 z m 3 0 V 3 h 2 V 5 H 11 z M 8 8 V 6 h 2 V 8 H 8 z m 3 0 V 6 h 2 V 8 H 11 z M 8 9 h 2 v 2 H 8 V 9 z m 0 5 v -2 h 2 v 2 H 8 z m 3 0 v -2 h 2 v 2 h -2 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="M 7 2 H 6 5 2 V 15 H 5 6 7 V 2 z M 6 9 v 2 l 0 0 V 9 L 6 9 z M 3 5 V 3 H 5 V 5 H 3 z M 6 5 V 3 L 6 3 V 5 L 6 5 z M 3 8 V 6 H 5 V 8 H 3 z M 6 8 V 6 L 6 6 V 8 L 6 8 z M 3 9 h 2 v 2 H 3 V 9 z m 0 5 v -2 h 2 v 2 H 3 z m 3 0 v -2 l 0 0 v 2 l 0 0 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1Separator Style="{StaticResource ToolBarSeparator}"/>
                                <!--move task-->
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding MoveTaskUpCommand}" ToolTipService.ToolTip="{Binding ToolTip_TaskUp,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="16" Height="16">
                                                    <Polygon Points="7.5,2 13,8 2,8 " FillRule="NonZero" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="5" Canvas.Top="5" Width="5" Height="9" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding MoveTaskDownCommand}" ToolTipService.ToolTip="{Binding ToolTip_TaskDown,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="16" Height="16">
                                                    <Polygon Points="7.5,14 2,8 13,8 " FillRule="NonZero" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="5" Canvas.Top="2" Width="5" Height="9" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1Separator Style="{StaticResource ToolBarSeparator}"/>
                                <!--task info-->
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowTaskInfoDialogCommand}" ToolTipService.ToolTip="{Binding ToolTip_TaskInfo,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="16" Height="16">
                                                    <Path Data="M 1 1 V 3 H 16 V 1 H 1 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="M 1 3 V 14 H 16 V 3 H 1 z M 15 13 H 2 V 4 h 13 v 9 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="11" Canvas.Top="5" Width="3" Height="1" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="9" Canvas.Top="5" Width="1" Height="7" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="11" Canvas.Top="7" Width="3" Height="1" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="11" Canvas.Top="9" Width="3" Height="1" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="11" Canvas.Top="11" Width="3" Height="1" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="3" Canvas.Top="6" Width="5" Height="3" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1Separator Style="{StaticResource ToolBarSeparator}"/>
                                <!--fieldstyles-->
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowFieldStylesDialogCommand}" ToolTipService.ToolTip="{Binding ToolTip_FieldStyles,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <TextBlock Text="&#xE1C8;" Style="{StaticResource SymbolText}"/>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1Separator Style="{StaticResource ToolBarSeparator}"/>
                                <!--task manipulate-->
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding AddTaskCommand}" ToolTipService.ToolTip="{Binding ToolTip_AddTask,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="20" Height="16">
                                                    <Canvas.RenderTransform>
                                                        <TranslateTransform X="0" Y="2"/>
                                                    </Canvas.RenderTransform>
                                                    <Polygon Points="4,0 3,0 3,2.294 1.378,0.672 0.671,1.379 2.292,3 0,3 0,4 2.292,4 0.672,5.621 1.379,6.328 3,4.707 3,7 4,7 4,4.708 5.621,6.329 6.328,5.622 4.706,4 7,4 7,3 4.706,3 6.328,1.378 5.621,0.671 4,2.292 " Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="M 14 5 H 7.725 C 7.599 5.354 7.445 5.693 7.24 6 H 13 c 1.104 0 2 0.896 2 2 0 1.104 -0.896 2 -2 2 H 7 C 5.896 10 5 9.104 5 8 5 7.902 5.015 7.809 5.029 7.716 4.702 7.834 4.357 7.91 4 7.95 V 9 c 0 1.104 0.896 2 2 2 h 8 c 1.104 0 2 -0.896 2 -2 V 7 C 16 5.896 15.104 5 14 5 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding AddSummaryTask}" ToolTipService.ToolTip="{Binding ToolTip_AddSummaryTask,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="20" Height="16">
                                                    <Canvas.RenderTransform>
                                                        <TranslateTransform X="0" Y="2"/>
                                                    </Canvas.RenderTransform>
                                                    <Polygon Points="4,0 3,0 3,2.294 1.378,0.672 0.671,1.379 2.292,3 0,3 0,4 2.292,4 0.672,5.621 1.379,6.328 3,4.707 3,7 4,7 4,4.708 5.621,6.329 6.328,5.622 4.706,4 7,4 7,3 4.706,3 6.328,1.378 5.621,0.671 4,2.292 " Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="M 12 6 H 8 7.43 C 6.687 7.165 5.443 7.961 4 8.117 V 10 l 2 2 2 -2 V 8 h 4 v 2 l 2 2 2 -2 V 8 6 h -4 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding InactiveTaskCommand}" ToolTipService.ToolTip="{Binding ToolTip_Inactive,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <TextBlock Text="&#xE0CE;" FontSize="10" Style="{StaticResource SymbolText}"/>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding SplitTaskCommand}" ToolTipService.ToolTip="{Binding ToolTip_SplitTask,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <TextBlock Text="&#xE0CD;" FontSize="10" Style="{StaticResource SymbolText}"/>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding AddBlankRowCommand}" ToolTipService.ToolTip="{Binding ToolTip_AddBlankRow,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="16" Height="16">
                                                    <Path Data="m 10 4 v 1 h 1 V 7 H 10 9 8 7 6 V 5 H 7 V 4 H 2 V 8 H 15 V 5 4 H 10 z M 5 7 H 3 V 5 h 2 v 2 z m 9 0 H 12 V 5 h 2 v 2 z" Fill="{TemplateBinding ViewHeaderForeground}" />
                                                    <Path Data="m 2 7 v 3 H 15 V 7 H 1 z" Fill="{TemplateBinding ViewHeaderForeground}" />
                                                    <Rectangle Canvas.Left="8" Canvas.Top="1" Width="1" Height="5" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Polygon Points="6,3 11,3 8.5,0 " FillRule="NonZero" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="M 15 16 V 13 12 9 H 2 v 3 1 3 H 15 z M 8 15 H 6 v -2 h 2 v 2 z m 4 -5 h 2 v 2 h -2 v -2 z m 0 3 h 2 v 2 H 12 V 13 z M 9 10 h 2 v 2 H 9 v -2 z m 0 3 h 2 v 2 H 9 V 13 z M 8 10 v 2 H 6 v -2 h 2 z m -5 0 h 2 v 2 H 3 v -2 z m 0 3 h 2 v 2 H 3 v -2 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding DeleteTaskCommand}" ToolTipService.ToolTip="{Binding ToolTip_DeleteTask,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <TextBlock Text="&#xE106;" Style="{StaticResource SymbolText}" />
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding OutdentTaskCommand}" ToolTipService.ToolTip="{Binding ToolTip_OutdentTask,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="16" Height="16">
                                                    <Path Data="M 1 1 V 2 H 11 V 1 H 1 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="M 1 4 V 5 H 11 V 4 H 1 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="M 1 7 V 8 H 6 V 7 H 1 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="10" Canvas.Top="9" Width="6" Height="4" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Polygon Points="11,6 5,11 11,16 " Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding IndentTaskCommand}" ToolTipService.ToolTip="{Binding ToolTip_IndentTask,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="16" Height="16">
                                                    <Path Data="M 6 1 V 2 H 16 V 1 H 6 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="M 6 4 V 5 H 16 V 4 H 6 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="m 11 7 v 1 h 5 V 7 h -5 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="1" Canvas.Top="9" Width="6" Height="4" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Polygon Points="6,16 12,11 6,6 " Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowProjectSummary}" ToolTipService.ToolTip="{Binding ToolTip_ShowProjectSummary,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="20" Height="16">
                                                    <Canvas.RenderTransform>
                                                        <TranslateTransform X="0" Y="0.6"/>
                                                    </Canvas.RenderTransform>
                                                    <Polygon Points="7,5 7,10 8,10 8,6 14,6 14,10 15,10 15,5 " Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="M 2.827 8.008 V 10.4 H 2 V 4 H 3.818 C 4.509 4 5.046 4.167 5.427 4.5 5.809 4.833 6 5.31 6 5.929 6 6.557 5.777 7.066 5.331 7.456 4.884 7.846 4.327 8.03 3.657 8.008 h -0.83 z m 0 -3.28 V 7.28 H 3.591 C 4.095 7.28 4.478 7.167 4.74 6.94 5.001 6.712 5.133 6.387 5.133 5.962 5.133 5.139 4.645 4.727 3.67 4.727 H 2.827 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <!--group-->
                                <c1:C1ToolbarDropDown VerticalHeaderAlignment="Center" x:Name="MenuGroup" ToolTipService.ToolTip="{Binding ToolTip_GroupBy,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarDropDown.Header>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="16" Height="16">
                                                    <Rectangle Canvas.Left="1" Canvas.Top="3" Width="11" Height="3" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="4" Canvas.Top="9" Width="11" Height="3" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="9" Canvas.Top="-2" Width="1" Height="7" Fill="{TemplateBinding ViewHeaderForeground}">
                                                        <Rectangle.RenderTransform>
                                                            <MatrixTransform Matrix="0.7066 -0.7076 0.7076 0.7066 -2.8298 7.6651"/>
                                                        </Rectangle.RenderTransform>
                                                    </Rectangle>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarDropDown.Header>
                                    <c1:C1MenuList>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="GroupItems" x:Name="MenuTaskMode" Command="{Binding GroupByTaskModeCommand}" Header="{Binding MenuItem_GroupBy_TaskMode,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="GroupItems" x:Name="MenuTaskComplete" Command="{Binding GroupByTaskCompeletedCommand}" Header="{Binding MenuItem_GroupBy_TaskCompleteVsTaskIncomplete,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="GroupItems" x:Name="MenuDuration" Command="{Binding GroupByDurationCommand}" Header="{Binding MenuItem_GroupBy_Duration,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="GroupItems" x:Name="MenuMilestones" Command="{Binding GroupByMilestoneCommand}" Header="{Binding MenuItem_GroupBy_Milestones,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="GroupItems" x:Name="MenuResource" Command="{Binding GroupByResourceCommand}" Header="{Binding MenuItem_GroupBy_Resource,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="GroupItems" x:Name="MenuStatus" Command="{Binding GroupByStatusDateCommand}" Header="{Binding MenuItem_GroupBy_Status,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="GroupItems" x:Name="MenuConstraintType" Command="{Binding GroupByConstraintTypeCommand}" Header="{Binding MenuItem_GroupBy_ConstraintType,Source={StaticResource Resources}}"/>
                                        <c1:C1Separator/>
                                        <c1:C1MenuItem Style="{StaticResource DropDownMenuItem}" x:Name="MenuClearGroup" Command="{Binding ClearGroupCommand}" Header="{Binding MenuItem_GroupBy_ClearGroup,Source={StaticResource Resources}}" />
                                        <c1:C1MenuItem Style="{StaticResource DropDownMenuItem}" x:Name="MenuNewGroupBy" Command="{Binding ShowGroupByCommand}" Header="{Binding MenuItem_GroupBy_NewGroupBy,Source={StaticResource Resources}}" />
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" x:Name="MenuMaintainHierarchy" Command="{Binding MaintainHierarchyCommand}" Header="{Binding MenuItem_GroupBy_MaintainHierarchy,Source={StaticResource Resources}}"/>
                                    </c1:C1MenuList>
                                </c1:C1ToolbarDropDown>
                                <!--sort/filter-->
                                <c1:C1ToolbarDropDown VerticalHeaderAlignment="Center" ToolTipService.ToolTip="{Binding ToolTip_Filter,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarDropDown.Header>
                                        <TextBlock Text="&#xE16E;" Margin="0,-2,0,2" Style="{StaticResource SymbolText}"/>
                                    </c1:C1ToolbarDropDown.Header>
                                    <c1:C1MenuList>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="FilterItems" x:Name="MenuNoFilter" Command="{Binding NoFilterCommand}" Header="{Binding MenuItem_NoFilter,Source={StaticResource Resources}}" IsChecked="True"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="FilterItems" x:Name="MenuCompletedTasks" Command="{Binding FilterByCompletedTasksCommand}" Header="{Binding MenuItem_CompletedTasks,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="FilterItems" x:Name="MenuDateRange" Command="{Binding FilterByDateRangeCommand}" Header="{Binding MenuItem_DateRange,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="FilterItems" x:Name="MenuIncompleteTasks" Command="{Binding FilterByIncompleteTasksCommand}" Header="{Binding MenuItem_IncompleteTasks,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="FilterItems" x:Name="MenuLateTasks" Command="{Binding FilterByLateTasksCommand}" Header="{Binding MenuItem_LateTasks,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="FilterItems" x:Name="MenuMilestoneTasks" Command="{Binding FilterByMilestoneTasksCommand}" Header="{Binding MenuItem_Milestones,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="FilterItems" x:Name="MenuSummaryTasks" Command="{Binding FilterBySummaryTasksCommand}" Header="{Binding MenuItem_SummaryTasks,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="FilterItems" x:Name="MenuDurationOnlyTasks" Command="{Binding FilterByDurationOnlyTasksCommand}" Header="{Binding MenuItem_TaskWithDurationOnly,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="FilterItems" x:Name="MenuUsingResource" Command="{Binding FilterByUsingResourceCommand}" Header="{Binding MenuItem_UsingResource,Source={StaticResource Resources}}"/>
                                        <c1:C1Separator/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="FilterItems" x:Name="MenuAdvancedFilter" Command="{Binding ShowAdvancedFilterCommand}" Header="{Binding MenuItem_AdvancedFilter,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource DropDownMenuItem}" GroupName="FilterItems" Command="{Binding ShowMoreFiltersCommand}" Header="{Binding MenuItem_MoreFilters,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" x:Name="MenuShowRelatedSummary" Command="{Binding ShowRelatedSummaryRowsCommand}" Header="{Binding MenuItem_ShowRelatedSummaryRows,Source={StaticResource Resources}}"/>
                                    </c1:C1MenuList>
                                </c1:C1ToolbarDropDown>
                                <c1:C1ToolbarDropDown VerticalHeaderAlignment="Center" ToolTipService.ToolTip="{Binding ToolTip_Sort,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarDropDown.Header>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="16" Height="16">
                                                    <Path Data="M 8 7 H 6.334 L 5.794 5.396 H 3.188 L 2.659 7 H 1 L 3.626 0 H 5.423 L 8 7 z M 5.434 4.244 4.617 1.816 C 4.565 1.663 4.53 1.458 4.507 1.206 H 4.467 C 4.448 1.412 4.407 1.608 4.341 1.798 L 3.52 4.244 h 1.914 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="m 7 9.694 -3.835 4.26 H 6.994 V 15 H 1 V 14.287 L 4.905 10.045 H 1.29 V 9 H 6.998 V 9.694 H 7 z" Fill="IndianRed"/>
                                                    <Rectangle Canvas.Left="12" Canvas.Top="0" Width="1" Height="13" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Polygon Points="10,12 12.5,15 15,12 " FillRule="NonZero" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarDropDown.Header>
                                    <c1:C1MenuList>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="SortItems" x:Name="MenuByName" Command="{Binding SortByNameCommand}" Header="{Binding MenuItem_ByName,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="SortItems" x:Name="MenuByStart" Command="{Binding SortByStartCommand}" Header="{Binding MenuItem_ByStartDate,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="SortItems" x:Name="MenuByFinish" Command="{Binding SortByFinishCommand}" Header="{Binding MenuItem_ByFinishDate,Source={StaticResource Resources}}"/>
                                        <c1:C1MenuItem Style="{StaticResource CheckableDropDownMenuItem}" GroupName="SortItems" x:Name="MenuByDuration" Command="{Binding SortByDurationCommand}" Header="{Binding MenuItem_ByDuration,Source={StaticResource Resources}}"/>
                                        <c1:C1Separator Background="Black" />
                                        <c1:C1MenuItem Style="{StaticResource DropDownMenuItem}" Command="{Binding NoSortCommand}" Header="{Binding MenuItem_RemoveSort,Source={StaticResource Resources}}" />
                                        <c1:C1MenuItem Style="{StaticResource DropDownMenuItem}" Command="{Binding ShowSortDialogCommand}" Header="{Binding MenuItem_SortBy,Source={StaticResource Resources}}">
                                            <c1:C1MenuItem.Icon>
                                                <Grid Style="{StaticResource MenuIcon}">
                                                    <Viewbox Stretch="Uniform">
                                                        <Canvas Width="16" Height="16">
                                                            <Path Data="M 8 7 H 6.334 L 5.794 5.396 H 3.188 L 2.659 7 H 1 L 3.626 0 H 5.423 L 8 7 z M 5.434 4.244 4.617 1.816 C 4.565 1.663 4.53 1.458 4.507 1.206 H 4.467 C 4.448 1.412 4.407 1.608 4.341 1.798 L 3.52 4.244 h 1.914 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                            <Path Data="m 7 9.694 -3.835 4.26 H 6.994 V 15 H 1 V 14.287 L 4.905 10.045 H 1.29 V 9 H 6.998 V 9.694 H 7 z" Fill="IndianRed"/>
                                                            <Rectangle Canvas.Left="12" Canvas.Top="0" Width="1" Height="13" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                            <Polygon Points="10,12 12.5,15 15,12 " FillRule="NonZero" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                        </Canvas>
                                                    </Viewbox>
                                                </Grid>
                                            </c1:C1MenuItem.Icon>
                                        </c1:C1MenuItem>
                                    </c1:C1MenuList>
                                </c1:C1ToolbarDropDown>
                                <c1:C1Separator Style="{StaticResource ToolBarSeparator}"/>
                                <!--project-->
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowProjectInfoDialogCommand}" ToolTipService.ToolTip="{Binding ToolTip_ProjectInfo,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="16" Height="16">
                                                    <Canvas.RenderTransform>
                                                        <TranslateTransform X="0" Y="1"/>
                                                    </Canvas.RenderTransform>
                                                    <Path Data="M 1 1 V 3 H 16 V 1 H 1 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="M 1 3 V 14 H 16 V 3 H 1 z M 15 13 H 2 V 4 h 13 v 9 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="10" Canvas.Top="5" Width="4" Height="1" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="10" Canvas.Top="7" Width="4" Height="1" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="10" Canvas.Top="9" Width="4" Height="1" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="10" Canvas.Top="11" Width="4" Height="1" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="m 3 5 v 7 H 9 V 5 H 3 z M 7.371 8.813 C 6.953 9.122 6.43 9.27 5.801 9.257 H 5.188 V 11 H 4 V 6 H 5.919 C 7.307 6 8 6.527 8 7.583 8 8.094 7.791 8.504 7.371 8.813 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="M 5.714 6.826 H 5.188 V 8.439 H 5.704 C 6.402 8.439 6.751 8.168 6.751 7.624 6.75 7.093 6.405 6.826 5.714 6.826 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowWorkingTimeDialogCommand}" ToolTipService.ToolTip="{Binding ToolTip_WorkingTime,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="16" Height="16">
                                                    <Path Data="M 11.5 7 C 9.016 7 7 9.016 7 11.5 7 13.984 9.016 16 11.5 16 13.984 16 16 13.984 16 11.5 16 9.016 13.984 7 11.5 7 z m 0 8.1 c -1.988 0 -3.6 -1.611 -3.6 -3.6 0 -1.989 1.612 -3.6 3.6 -3.6 1.988 0 3.6 1.612 3.6 3.6 0 1.988 -1.612 3.6 -3.6 3.6 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="10" Canvas.Top="9" Width="1" Height="4" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="10" Canvas.Top="12" Width="3" Height="1" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="M 6 11.5 C 6 10.17 6.472 8.951 7.257 8 H 7 V 6 H 9 V 6.606 C 9.317 6.443 9.651 6.312 10 6.213 V 6 h 2 v 0.026 c 0.344 0.031 0.678 0.096 1 0.187 V 3 0 H 10 9 7 6 4 3 0 v 3 9 H 3 4 6 6.025 C 6.01 11.835 6 11.669 6 11.5 z M 10 3 h 2 V 5 H 10 V 3 z M 7 3 H 9 V 5 H 7 V 3 z M 3 11 H 1 V 9 h 2 v 2 z M 3 8 H 1 V 6 H 3 V 8 z M 3 5 H 1 V 3 H 3 V 5 z M 4 3 H 6 V 5 H 4 V 3 z M 4 6 H 6 V 8 H 4 V 6 z m 0 5 V 9 h 2 v 2 H 4 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="3.5" Canvas.Top="5.5" Width="3" Height="3" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowProgressLineDialogCommand}" ToolTipService.ToolTip="{Binding ToolTip_ProgressLine,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="16" Height="16">
                                                    <Rectangle Canvas.Left="1" Canvas.Top="5" Width="4" Height="1" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="4" Canvas.Top="11" Width="4" Height="1" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Polygon Points="8.857,15 10,15 10,9.008 10,8 10,7.593 7.618,5.509 10,3.425 10,3 10,2.01 10,1 8.857,1 8.857,3 8.868,3 6,5.509 8.857,8.008 " Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Polygon Points="1,3 1,8 7.5,8 6.5,7 2,7 2,4 6.5,4 7.5,3 " Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Polygon Points="4,9 4,14 8,14 8,13 5,13 5,10 8,10 8,9 " Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Polygon Points="11,14 16,14 16,9 11,9 11,10 15,10 15,13 11,13 " Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Polygon Points="11,8 13,8 13,3 11,3 11,4 12,4 12,7 11,7 " Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1Separator Style="{StaticResource ToolBarSeparator}"/>
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowResourceDialogCommand}" ToolTipService.ToolTip="{Binding ToolTip_Resources,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <TextBlock Text="&#xE125;" Style="{StaticResource SymbolText}" />
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1Separator Style="{StaticResource ToolBarSeparator}"/>
                                <!--timescale-->
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowTimescaleDialogCommand}" ToolTipService.ToolTip="{Binding ToolTip_TimeScale,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="16" Height="16">
                                                    <Canvas.RenderTransform>
                                                        <TranslateTransform X="15.831313" Y="0.56704491"/>
                                                    </Canvas.RenderTransform>
                                                    <Path Data="m 0.03468714 14.020382 -2.45300004 -2.453 c -0.009 -0.009 -0.021 -0.011 -0.03 -0.019 0.386 -0.614 0.617 -1.336 0.617 -2.1149998 0 -2.209 -1.79 -4 -4 -4 -2.21 0 -4 1.791 -4 4 0 2.2099998 1.79 3.9999998 4 3.9999998 0.779 0 1.501 -0.232 2.116 -0.617 0.008 0.009 0.01 0.021 0.019 0.03 l 2.452 2.452 c 0.205 0.206 0.57500004 0.172 0.82400004 -0.078 l 0.376 -0.377 c 0.25 -0.249 0.284 -0.618 0.079 -0.823 z M -8.8313129 9.4333822 c 0 -1.657 1.343 -3 3 -3 1.657 0 3 1.343 3 3 0 1.6569998 -1.343 2.9999998 -3 2.9999998 -1.657 0 -3 -1.343 -3 -2.9999998 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="m -10.730313 10.433382 h -1.101 V 8.4333822 h 1.101 c 0.071 -0.349 0.182 -0.682 0.322 -1 h -1.423 v -2 h 2.0000001 v 1.027 c 0.284 -0.381 0.621 -0.717 1 -1.005 v -0.022 h 0.027 c 0.833 -0.62 1.855 -1 2.973 -1 v -2 h 2 v 2 h -2 c 1.131 0 2.162 0.39 3 1.023 v -3.023 -3.00000008 h -3 -1 -2 -1 -2.0000001 -1 -3 V 2.4333822 11.433382 h 3 1 1.422 c -0.139 -0.318 -0.251 -0.651 -0.321 -1 z m 1.8990001 -7.9999998 h 2 v 2 h -2 v -2 z m -3.0000001 0 h 2.0000001 v 2 h -2.0000001 v -2 z m -1 7.9999998 h -2 V 8.4333822 h 2 v 1.9999998 z m 0 -2.9999998 h -2 v -2 h 2 v 2 z m 0 -3 h -2 v -2 h 2 v 2 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <!--barstyle-->
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowBarStylesDialogCommand}" ToolTipService.ToolTip="{Binding ToolTip_BarStyle,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="16" Height="16">
                                                    <Path Data="M 6.242 2 1 7.243 5.535 11.778 10.777 6.536 6.242 2 z M 5.535 10.363 2.414 7.243 6.242 3.414 9.363 6.536 5.535 10.363 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="M 6 0 C 4.25 0 4 1.587 4 2.299 V 4.29 L 5 3.278 V 2.76 C 5 2.049 5.062 1.011 6 1.011 c 1.031 0 1 1.038 1 1.749 V 5.288 7 C 7.582 6.823 8 6.351 8 5.791 V 2.299 C 8 1.587 7.781 0 6 0 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="m 11.517 6.574 c 0 0 -1.036 -1.284 -1.517 -1.528 -0.201 -0.102 -1 0 -1 0 L 10 5.8 V 13 l 1.517 -3.557 c 0.484 -0.802 0.787 -2.077 0 -2.869 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="m 9 13 c 0 0.553 0.439 1 0.982 1 h 5.035 C 15.561 14 16 13.553 16 13 l 0 0 c 0 -0.553 -0.439 -1 -0.982 -1 H 9.982 C 9.439 12 9 12.447 9 13 l 0 0 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="m 1 15 c 0 0.553 0.439 1 0.982 1 H 7.017 C 7.561 16 8 15.553 8 15 l 0 0 C 8 14.447 7.561 14 7.018 14 H 1.982 C 1.439 14 1 14.447 1 15 l 0 0 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1Separator Style="{StaticResource ToolBarSeparator}"/>
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ScrollToTaskCommand}" ToolTipService.ToolTip="{Binding ToolTip_ScrollToTask,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="16" Height="16">
                                                    <Polygon Points="11.621,15 13.371,14.015 11.012,9.928 14,9.079 7.006,5 7,13.021 9.24,10.876 " Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="M 6.093 2.917 9.664 5 h 3.314 C 13.543 5 14 4.552 14 4 V 2 C 14 1.448 13.543 1 12.979 1 H 3.021 C 2.457 1 2 1.448 2 2 v 2 c 0 0.552 0.458 1 1.021 1 h 3.07 L 6.093 2.917 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1Separator Style="{StaticResource ToolBarSeparator}"/>
                                <c1:C1ToolbarDropDown VerticalHeaderAlignment="Center" x:Name="MenuZoom" ToolTipService.ToolTip="{Binding ToolTip_Zoom,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarDropDown.Header>
                                        <TextBlock Text="&#xE1A3;" Style="{StaticResource SymbolText}"/>
                                    </c1:C1ToolbarDropDown.Header>
                                    <c1:C1MenuList>
                                        <c1:C1MenuItem Style="{StaticResource DropDownMenuItem}" Command="{Binding ZoomInCommand}" Header="{Binding MenuItem_ZoomIn,Source={StaticResource Resources}}">
                                            <c1:C1MenuItem.Icon>
                                                <TextBlock Text="&#xE12E;" Margin="2,0,-2,0" FontSize="13"  Style="{StaticResource SymbolText}"/>
                                            </c1:C1MenuItem.Icon>
                                        </c1:C1MenuItem>
                                        <c1:C1MenuItem Style="{StaticResource DropDownMenuItem}" Command="{Binding ZoomOutCommand}" Header="{Binding MenuItem_ZoomOut,Source={StaticResource Resources}}">
                                            <c1:C1MenuItem.Icon>
                                                <TextBlock Text="&#xE1A4;" Margin="3,0,-3,0" Style="{StaticResource SymbolText}"/>
                                            </c1:C1MenuItem.Icon>
                                        </c1:C1MenuItem>
                                        <c1:C1Separator/>
                                        <c1:C1MenuItem Style="{StaticResource DropDownMenuItem}" Command="{Binding ShowZoomDialogCommand}" Header="{Binding MenuItem_ZoomDialog,Source={StaticResource Resources}}">
                                            <c1:C1MenuItem.Icon>
                                                <TextBlock Text="&#xE1A3;" Margin="3,0,-3,0" Style="{StaticResource SymbolText}"/>
                                            </c1:C1MenuItem.Icon>
                                        </c1:C1MenuItem>
                                    </c1:C1MenuList>
                                </c1:C1ToolbarDropDown>
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ZoomEntireProjectCommand}" ToolTipService.ToolTip="{Binding ToolTip_ZoomEntireProject,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="16" Height="16">
                                                    <Path Data="M 15.866 8.587 13.413 6.134 C 13.404 6.125 13.392 6.123 13.383 6.115 13.77 5.501 14 4.779 14 4 14 1.791 12.21 0 10 0 7.79 0 6 1.791 6 4 c 0 2.21 1.79 4 4 4 0.779 0 1.501 -0.232 2.116 -0.617 0.008 0.01 0.01 0.021 0.019 0.03 l 2.452 2.452 c 0.205 0.205 0.575 0.172 0.824 -0.078 L 15.787 9.41 C 16.037 9.161 16.07 8.792 15.866 8.587 z M 7 4 C 7 2.343 8.343 1 10 1 11.657 1 13 2.343 13 4 13 5.657 11.657 7 10 7 8.343 7 7 5.657 7 4 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="2" Canvas.Top="8" Width="5" Height="2" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Rectangle Canvas.Left="6" Canvas.Top="11" Width="5" Height="2" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="m 13 10 v 4 H 1 V 6 H 5.422 C 5.154 5.387 5 4.712 5 4 5 3.657 5.035 3.323 5.101 3 H 0 v 2 10 h 14 v -4" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ZoomSelectedTaskCommand}" ToolTipService.ToolTip="{Binding ToolTip_ZoomSelectedTask,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="16" Height="16">
                                                    <Canvas.RenderTransform>
                                                        <TranslateTransform X="0" Y="-1.5892356e-4"/>
                                                    </Canvas.RenderTransform>
                                                    <Path Data="M 15.866 13.588 13.413 11.135 C 13.404 11.126 13.392 11.124 13.383 11.116 13.77 10.502 14 9.779 14 9.001 c 0 -2.209 -1.79 -4 -4 -4 -2.21 0 -4 1.791 -4 4 0 2.21 1.79 4 4 4 0.779 0 1.501 -0.232 2.116 -0.617 0.008 0.01 0.01 0.021 0.019 0.03 l 2.452 2.452 c 0.205 0.205 0.575 0.172 0.824 -0.078 l 0.376 -0.377 c 0.25 -0.249 0.283 -0.618 0.079 -0.823 z M 7 9.001 c 0 -1.658 1.343 -3 3 -3 1.656 0 3 1.343 3 3 0 1.657 -1.343 3 -3 3 -1.657 0 -3 -1.343 -3 -3 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                    <Path Data="M 6.022 6 C 6.936 4.792 8.37 4 10 4 11.129 4 12.159 4.388 12.996 5.02 12.996 5.013 13 5.007 13 5 V 2 C 13 1.448 12.543 1 11.979 1 H 2.021 C 1.457 1 1 1.448 1 2 v 3 c 0 0.552 0.458 1 1.021 1 h 3.07 0.931 z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                                <c1:C1Separator Style="{StaticResource ToolBarSeparator}"/>
                                <!--print-->
                                <c1:C1ToolbarButton VerticalContentAlignment="Center" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding PrintCommand}" ToolTipService.ToolTip="{Binding ToolTip_Print,Source={StaticResource Resources}}">
                                    <c1:C1ToolbarButton.Content>
                                        <Grid Style="{StaticResource MenuIcon}">
                                            <Viewbox Stretch="Uniform">
                                                <Canvas Width="100" Height="100">
                                                    <Path Fill="{TemplateBinding ViewHeaderForeground}">
                                                        <Path.Data>
                                                            <EllipseGeometry RadiusX="4" RadiusY="4" Center="74.161,51.268" />
                                                        </Path.Data>
                                                    </Path>
                                                    <Path Data="M82.111,36.287L76.09,36.287C76.098,36.143,76.111,36.001,76.111,35.855L76.111,20.353C76.111,15.935,72.529,12.353,68.111,12.353L32.084,12.353C27.666,12.353,24.084,15.935,24.084,20.353L24.084,35.855C24.084,36.001,24.098,36.143,24.105,36.287L18.084,36.287C13.666,36.287,10.084,39.869,10.084,44.287L10.084,69.185C10.084,73.603,13.666,77.185,18.084,77.185L24.084,77.185 24.084,80.855C24.084,85.273,27.666,88.855,32.084,88.855L68.111,88.855C72.529,88.855,76.111,85.273,76.111,80.855L76.111,77.185 82.111,77.185C86.529,77.185,90.111,73.603,90.111,69.185L90.111,44.287C90.111,39.868,86.529,36.287,82.111,36.287z M32.084,20.353L68.111,20.353 68.111,35.855 32.084,35.855 32.084,20.353z M68.111,69.185L68.111,77.185 68.111,80.855 32.084,80.855 32.084,77.185 32.084,69.185 32.084,65.353 68.111,65.353 68.111,69.185z M82.111,69.185L76.111,69.185 76.111,58.353 68.111,58.353 32.084,58.353 24.084,58.353 24.084,69.185 18.084,69.185 18.084,44.287 82.111,44.287 82.111,69.185z" Fill="{TemplateBinding ViewHeaderForeground}"/>
                                                </Canvas>
                                            </Viewbox>
                                        </Grid>
                                    </c1:C1ToolbarButton.Content>
                                </c1:C1ToolbarButton>
                            </ToolBar>
                            <!-- grid view on the left -->
                            <c1GanttView:GridView x:Name="GridView" Foreground="{TemplateBinding Foreground}" Grid.Row="1" RowHeaderForeground="{TemplateBinding ViewHeaderForeground}" ColumnHeaderForeground="{TemplateBinding ViewHeaderForeground}" RowBackground="Transparent" IsReadOnly="{TemplateBinding ReadOnly}" AllowResizing="Both" GridLinesVisibility="All" EditorBackground="Transparent" VerticalScrollBarVisibility="Hidden" SelectionBackground="{TemplateBinding HighlightBackColor}" SelectionForeground="{TemplateBinding HighlightForeColor}" Background="{TemplateBinding Background}">
                                <c1GanttView:GridView.Resources>
                                    <Style TargetType="c1:C1DatePicker">
                                        <Setter Property="CalendarStyle">
                                            <Setter.Value>
                                                <Style TargetType="{x:Type Calendar}">
                                                    <Setter Property="Template">
                                                        <Setter.Value>
                                                            <ControlTemplate TargetType="{x:Type Calendar}">
                                                                <Grid Height="180">
                                                                    <CalendarItem Background="{TemplateBinding Control.Background}" BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="{TemplateBinding Control.BorderThickness}" Name="PART_CalendarItem" Style="{TemplateBinding Calendar.CalendarItemStyle}" />
                                                                    <Button Grid.Row="1" Content="{c1GanttView:GanttViewLocalize Assembly=C1.WPF.GanttView.4,Key=Common:Text_Today,DefaultValue=Today}" Command="{StaticResource TodayCommand}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" VerticalAlignment="Bottom" Margin="45,5" FontSize="10" />
                                                                </Grid>
                                                            </ControlTemplate>
                                                        </Setter.Value>
                                                    </Setter>
                                                </Style>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </c1GanttView:GridView.Resources>
                                <c1GanttView:GridView.ContextMenu>
                                    <ContextMenu x:Name="GridContextMenu">
                                        <ContextMenu.DataContext>
                                            <c1GanttView:GridViewContextMenuViewModel />
                                        </ContextMenu.DataContext>
                                        <MenuItem Visibility="{Binding ShowColumnHeaderMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowGridColumnsDialogCommand}" Header="{Binding ToolTip_GridColumns,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <Grid Grid.Column="5">
                                                    <Viewbox Stretch="Uniform">
                                                        <Canvas Width="16" Height="16">
                                                            <Path Data="M 5 15 H 8 V 2 H 5 v 15 z" Fill="{TemplateBinding Foreground}"/>
                                                            <Path Data="M 14 2 H 11 10 7 v 13 h 3 1 3 V 2 z m -1 7 v 2 H 11 V 9 h 2 z M 8 5 V 3 h 2 V 5 H 8 z m 3 0 V 3 h 2 V 5 H 11 z M 8 8 V 6 h 2 V 8 H 8 z m 3 0 V 6 h 2 V 8 H 11 z M 8 9 h 2 v 2 H 8 V 9 z m 0 5 v -2 h 2 v 2 H 8 z m 3 0 v -2 h 2 v 2 h -2 z" Fill="{TemplateBinding Foreground}"/>
                                                            <Path Data="M 7 2 H 6 5 2 V 15 H 5 6 7 V 2 z M 6 9 v 2 l 0 0 V 9 L 6 9 z M 3 5 V 3 H 5 V 5 H 3 z M 6 5 V 3 L 6 3 V 5 L 6 5 z M 3 8 V 6 H 5 V 8 H 3 z M 6 8 V 6 L 6 6 V 8 L 6 8 z M 3 9 h 2 v 2 H 3 V 9 z m 0 5 v -2 h 2 v 2 H 3 z m 3 0 v -2 l 0 0 v 2 l 0 0 z" Fill="{TemplateBinding Foreground}"/>
                                                        </Canvas>
                                                    </Viewbox>
                                                </Grid>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                        <MenuItem Visibility="{Binding ShowCellMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowTaskInfoDialogCommand}" Header="{Binding ToolTip_TaskInfo,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <Grid Opacity="{Binding ShowTaskInfoOpacity}">
                                                    <Viewbox Stretch="Uniform">
                                                        <Canvas Width="16" Height="16">
                                                            <Path Data="M 1 1 V 3 H 16 V 1 H 1 z" Fill="{TemplateBinding Foreground}"/>
                                                            <Path Data="M 1 3 V 14 H 16 V 3 H 1 z M 15 13 H 2 V 4 h 13 v 9 z" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="11" Canvas.Top="5" Width="3" Height="1" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="9" Canvas.Top="5" Width="1" Height="7" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="11" Canvas.Top="7" Width="3" Height="1" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="11" Canvas.Top="9" Width="3" Height="1" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="11" Canvas.Top="11" Width="3" Height="1" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="3" Canvas.Top="6" Width="5" Height="3" Fill="{TemplateBinding Foreground}"/>
                                                        </Canvas>
                                                    </Viewbox>
                                                </Grid>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                        <MenuItem Visibility="{Binding ShowCellMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowFieldStylesDialogCommand}" Header="{Binding ToolTip_FieldStyles,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <TextBlock Text="&#xE1C8;" Opacity="{Binding ShowFieldStylesOpacity}" FontFamily="Segoe UI Symbol" VerticalAlignment="Center" Foreground="{TemplateBinding Foreground}"/>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                        <Separator Style="{StaticResource ContextMenuSeparator}"/>
                                        <MenuItem Visibility="{Binding ShowCellMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding AddTaskCommand}" Header="{Binding ToolTip_AddTask,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <Grid Opacity="{Binding AddTaskOpacity}">
                                                    <Viewbox Stretch="Uniform">
                                                        <Canvas Width="16" Height="16">
                                                            <Canvas.RenderTransform>
                                                                <TranslateTransform X="0" Y="2"/>
                                                            </Canvas.RenderTransform>
                                                            <Polygon Points="4,0 3,0 3,2.294 1.378,0.672 0.671,1.379 2.292,3 0,3 0,4 2.292,4 0.672,5.621 1.379,6.328 3,4.707 3,7 4,7 4,4.708 5.621,6.329 6.328,5.622 4.706,4 7,4 7,3 4.706,3 6.328,1.378 5.621,0.671 4,2.292 " Fill="{TemplateBinding Foreground}"/>
                                                            <Path Data="M 14 5 H 7.725 C 7.599 5.354 7.445 5.693 7.24 6 H 13 c 1.104 0 2 0.896 2 2 0 1.104 -0.896 2 -2 2 H 7 C 5.896 10 5 9.104 5 8 5 7.902 5.015 7.809 5.029 7.716 4.702 7.834 4.357 7.91 4 7.95 V 9 c 0 1.104 0.896 2 2 2 h 8 c 1.104 0 2 -0.896 2 -2 V 7 C 16 5.896 15.104 5 14 5 z" Fill="{TemplateBinding Foreground}"/>
                                                        </Canvas>
                                                    </Viewbox>
                                                </Grid>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                        <MenuItem Visibility="{Binding ShowCellMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding AddSummaryTask}" Header="{Binding ToolTip_AddSummaryTask,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <Grid Opacity="{Binding AddSummaryOpacity}">
                                                    <Viewbox Stretch="Uniform">
                                                        <Canvas Width="16" Height="16">
                                                            <Canvas.RenderTransform>
                                                                <TranslateTransform X="0" Y="2"/>
                                                            </Canvas.RenderTransform>
                                                            <Polygon Points="4,0 3,0 3,2.294 1.378,0.672 0.671,1.379 2.292,3 0,3 0,4 2.292,4 0.672,5.621 1.379,6.328 3,4.707 3,7 4,7 4,4.708 5.621,6.329 6.328,5.622 4.706,4 7,4 7,3 4.706,3 6.328,1.378 5.621,0.671 4,2.292 " Fill="{TemplateBinding Foreground}"/>
                                                            <Path Data="M 12 6 H 8 7.43 C 6.687 7.165 5.443 7.961 4 8.117 V 10 l 2 2 2 -2 V 8 h 4 v 2 l 2 2 2 -2 V 8 6 h -4 z" Fill="{TemplateBinding Foreground}"/>
                                                        </Canvas>
                                                    </Viewbox>
                                                </Grid>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                        <MenuItem Visibility="{Binding ShowCellMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding AddBlankRowCommand}" Header="{Binding ToolTip_AddBlankRow,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <Grid Opacity="{Binding AddBlankRowOpacity}">
                                                    <Viewbox Stretch="Uniform">
                                                        <Canvas Width="16" Height="16">
                                                            <Path Data="m 10 4 v 1 h 1 V 7 H 10 9 8 7 6 V 5 H 7 V 4 H 2 V 8 H 15 V 5 4 H 10 z M 5 7 H 3 V 5 h 2 v 2 z m 9 0 H 12 V 5 h 2 v 2 z" Fill="{TemplateBinding Foreground}" />
                                                            <Path Data="m 2 7 v 3 H 15 V 7 H 1 z" Fill="{TemplateBinding Foreground}" />
                                                            <Rectangle Canvas.Left="8" Canvas.Top="1" Width="1" Height="5" Fill="{TemplateBinding Foreground}"/>
                                                            <Polygon Points="6,3 11,3 8.5,0 " FillRule="NonZero" Fill="{TemplateBinding Foreground}"/>
                                                            <Path Data="M 15 16 V 13 12 9 H 2 v 3 1 3 H 15 z M 8 15 H 6 v -2 h 2 v 2 z m 4 -5 h 2 v 2 h -2 v -2 z m 0 3 h 2 v 2 H 12 V 13 z M 9 10 h 2 v 2 H 9 v -2 z m 0 3 h 2 v 2 H 9 V 13 z M 8 10 v 2 H 6 v -2 h 2 z m -5 0 h 2 v 2 H 3 v -2 z m 0 3 h 2 v 2 H 3 v -2 z" Fill="{TemplateBinding Foreground}"/>
                                                        </Canvas>
                                                    </Viewbox>
                                                </Grid>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                        <MenuItem Visibility="{Binding ShowCellMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding DeleteTaskCommand}" Header="{Binding ToolTip_DeleteTask,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <TextBlock Text="&#xE106;" Opacity="{Binding DeleteTaskOpacity}" FontFamily="Segoe UI Symbol" VerticalAlignment="Center" Foreground="{TemplateBinding Foreground}"/>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                        <Separator Style="{StaticResource ContextMenuSeparator}"/>
                                        <MenuItem Visibility="{Binding ShowCellMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ScrollToTaskCommand}" Header="{Binding ToolTip_ScrollToTask,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <Grid Opacity="{Binding ScrollToTaskOpacity}">
                                                    <Viewbox Stretch="Uniform">
                                                        <Canvas Width="16" Height="16">
                                                            <Polygon Points="11.621,15 13.371,14.015 11.012,9.928 14,9.079 7.006,5 7,13.021 9.24,10.876 " Fill="{TemplateBinding Foreground}"/>
                                                            <Path Data="M 6.093 2.917 9.664 5 h 3.314 C 13.543 5 14 4.552 14 4 V 2 C 14 1.448 13.543 1 12.979 1 H 3.021 C 2.457 1 2 1.448 2 2 v 2 c 0 0.552 0.458 1 1.021 1 h 3.07 L 6.093 2.917 z" Fill="{TemplateBinding Foreground}"/>
                                                        </Canvas>
                                                    </Viewbox>
                                                </Grid>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                        <MenuItem Visibility="{Binding ShowCellMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding MoveTaskUpCommand}" Header="{Binding ToolTip_TaskUp,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <Grid Opacity="{Binding MoveTaskUpOpacity}">
                                                    <Viewbox Stretch="Uniform">
                                                        <Canvas Width="16" Height="16">
                                                            <Polygon Points="7.5,2 13,8 2,8 " FillRule="NonZero" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="5" Canvas.Top="5" Width="5" Height="9" Fill="{TemplateBinding Foreground}"/>
                                                        </Canvas>
                                                    </Viewbox>
                                                </Grid>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                        <MenuItem Visibility="{Binding ShowCellMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding MoveTaskDownCommand}" Header="{Binding ToolTip_TaskDown,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <Grid Opacity="{Binding MoveTaskDownOpacity}">
                                                    <Viewbox Stretch="Uniform">
                                                        <Canvas Width="16" Height="16">
                                                            <Polygon Points="7.5,14 2,8 13,8 " FillRule="NonZero" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="5" Canvas.Top="2" Width="5" Height="9" Fill="{TemplateBinding Foreground}"/>
                                                        </Canvas>
                                                    </Viewbox>
                                                </Grid>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                    </ContextMenu>
                                </c1GanttView:GridView.ContextMenu>
                            </c1GanttView:GridView>
                            <!-- splitter in the middle -->
                            <c:GridSplitter x:Name="Splitter" Grid.Column="1" Grid.Row="1" Width="5" Background="{TemplateBinding SplitterColor}" HorizontalAlignment="Center" VerticalAlignment="Stretch" Focusable="False"/>
                            <!-- chart view on the right -->
                            <c1GanttView:ChartView x:Name="ChartView" Foreground="{TemplateBinding Foreground}" ColumnHeaderForeground="{TemplateBinding ViewHeaderForeground}"  Grid.Row="1" Grid.Column="2" RowBackground="Transparent" IsReadOnly="{TemplateBinding ReadOnly}" AutoGenerateColumns="False" HeadersVisibility="Column" AllowDragging="None" AllowResizing="Rows" AllowMerging="All"  GridLinesVisibility="None" CursorBackground="Transparent" SelectionMode="Cell" Background="{TemplateBinding Background}">
                                <c1GanttView:ChartView.ContextMenu>
                                    <ContextMenu>
                                        <ContextMenu.DataContext>
                                            <c1GanttView:ChartViewContextMenuViewModel />
                                        </ContextMenu.DataContext>
                                        <MenuItem Visibility="{Binding ShowColumnHeaderMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowTimescaleDialogCommand}" Header="{Binding ToolTip_TimeScale,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <Grid Opacity="{Binding ShowTimescaleOpacity}">
                                                    <Viewbox Stretch="Uniform">
                                                        <Canvas Width="16" Height="16">
                                                            <Canvas.RenderTransform>
                                                                <TranslateTransform X="15.831313" Y="0.56704491"/>
                                                            </Canvas.RenderTransform>
                                                            <Path Data="m 0.03468714 14.020382 -2.45300004 -2.453 c -0.009 -0.009 -0.021 -0.011 -0.03 -0.019 0.386 -0.614 0.617 -1.336 0.617 -2.1149998 0 -2.209 -1.79 -4 -4 -4 -2.21 0 -4 1.791 -4 4 0 2.2099998 1.79 3.9999998 4 3.9999998 0.779 0 1.501 -0.232 2.116 -0.617 0.008 0.009 0.01 0.021 0.019 0.03 l 2.452 2.452 c 0.205 0.206 0.57500004 0.172 0.82400004 -0.078 l 0.376 -0.377 c 0.25 -0.249 0.284 -0.618 0.079 -0.823 z M -8.8313129 9.4333822 c 0 -1.657 1.343 -3 3 -3 1.657 0 3 1.343 3 3 0 1.6569998 -1.343 2.9999998 -3 2.9999998 -1.657 0 -3 -1.343 -3 -2.9999998 z" Fill="{TemplateBinding Foreground}"/>
                                                            <Path Data="m -10.730313 10.433382 h -1.101 V 8.4333822 h 1.101 c 0.071 -0.349 0.182 -0.682 0.322 -1 h -1.423 v -2 h 2.0000001 v 1.027 c 0.284 -0.381 0.621 -0.717 1 -1.005 v -0.022 h 0.027 c 0.833 -0.62 1.855 -1 2.973 -1 v -2 h 2 v 2 h -2 c 1.131 0 2.162 0.39 3 1.023 v -3.023 -3.00000008 h -3 -1 -2 -1 -2.0000001 -1 -3 V 2.4333822 11.433382 h 3 1 1.422 c -0.139 -0.318 -0.251 -0.651 -0.321 -1 z m 1.8990001 -7.9999998 h 2 v 2 h -2 v -2 z m -3.0000001 0 h 2.0000001 v 2 h -2.0000001 v -2 z m -1 7.9999998 h -2 V 8.4333822 h 2 v 1.9999998 z m 0 -2.9999998 h -2 v -2 h 2 v 2 z m 0 -3 h -2 v -2 h 2 v 2 z" Fill="{TemplateBinding Foreground}"/>
                                                        </Canvas>
                                                    </Viewbox>
                                                </Grid>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                        <MenuItem Visibility="{Binding ShowColumnHeaderMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowZoomDialogCommand}" Header="{Binding MenuItem_ZoomDialog,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <TextBlock x:Name="ContextZoom" Text="&#xE1A3;" FontFamily="Segoe UI Symbol" VerticalAlignment="Center" Foreground="{TemplateBinding Foreground}"/>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                        <MenuItem Visibility="{Binding ShowCellMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowTaskInfoDialogCommand}" Header="{Binding ToolTip_TaskInfo,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <Grid Opacity="{Binding ShowTaskInfoOpacity}">
                                                    <Viewbox Stretch="Uniform">
                                                        <Canvas Width="16" Height="16">
                                                            <Path Data="M 1 1 V 3 H 16 V 1 H 1 z" Fill="{TemplateBinding Foreground}"/>
                                                            <Path Data="M 1 3 V 14 H 16 V 3 H 1 z M 15 13 H 2 V 4 h 13 v 9 z" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="11" Canvas.Top="5" Width="3" Height="1" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="9" Canvas.Top="5" Width="1" Height="7" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="11" Canvas.Top="7" Width="3" Height="1" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="11" Canvas.Top="9" Width="3" Height="1" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="11" Canvas.Top="11" Width="3" Height="1" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="3" Canvas.Top="6" Width="5" Height="3" Fill="{TemplateBinding Foreground}"/>
                                                        </Canvas>
                                                    </Viewbox>
                                                </Grid>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                        <MenuItem Visibility="{Binding ShowCellMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowWorkingTimeDialogCommand}" Header="{Binding ToolTip_WorkingTime,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <Grid Opacity="{Binding ShowWorkingTimeOpacity}">
                                                    <Viewbox Stretch="Uniform">
                                                        <Canvas Width="16" Height="16">
                                                            <Path Data="M 11.5 7 C 9.016 7 7 9.016 7 11.5 7 13.984 9.016 16 11.5 16 13.984 16 16 13.984 16 11.5 16 9.016 13.984 7 11.5 7 z m 0 8.1 c -1.988 0 -3.6 -1.611 -3.6 -3.6 0 -1.989 1.612 -3.6 3.6 -3.6 1.988 0 3.6 1.612 3.6 3.6 0 1.988 -1.612 3.6 -3.6 3.6 z" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="10" Canvas.Top="9" Width="1" Height="4" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="10" Canvas.Top="12" Width="3" Height="1" Fill="{TemplateBinding Foreground}"/>
                                                            <Path Data="M 6 11.5 C 6 10.17 6.472 8.951 7.257 8 H 7 V 6 H 9 V 6.606 C 9.317 6.443 9.651 6.312 10 6.213 V 6 h 2 v 0.026 c 0.344 0.031 0.678 0.096 1 0.187 V 3 0 H 10 9 7 6 4 3 0 v 3 9 H 3 4 6 6.025 C 6.01 11.835 6 11.669 6 11.5 z M 10 3 h 2 V 5 H 10 V 3 z M 7 3 H 9 V 5 H 7 V 3 z M 3 11 H 1 V 9 h 2 v 2 z M 3 8 H 1 V 6 H 3 V 8 z M 3 5 H 1 V 3 H 3 V 5 z M 4 3 H 6 V 5 H 4 V 3 z M 4 6 H 6 V 8 H 4 V 6 z m 0 5 V 9 h 2 v 2 H 4 z" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="3.5" Canvas.Top="5.5" Width="3" Height="3" Fill="{TemplateBinding Foreground}"/>
                                                        </Canvas>
                                                    </Viewbox>
                                                </Grid>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                        <MenuItem Visibility="{Binding ShowCellMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowBarStylesDialogCommand}" Header="{Binding ToolTip_BarStyle,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <Grid Opacity="{Binding ShowBarStylesOpacity}">
                                                    <Viewbox Stretch="Uniform">
                                                        <Canvas Width="16" Height="16">
                                                            <Path Data="M 6.242 2 1 7.243 5.535 11.778 10.777 6.536 6.242 2 z M 5.535 10.363 2.414 7.243 6.242 3.414 9.363 6.536 5.535 10.363 z" Fill="{TemplateBinding Foreground}"/>
                                                            <Path Data="M 6 0 C 4.25 0 4 1.587 4 2.299 V 4.29 L 5 3.278 V 2.76 C 5 2.049 5.062 1.011 6 1.011 c 1.031 0 1 1.038 1 1.749 V 5.288 7 C 7.582 6.823 8 6.351 8 5.791 V 2.299 C 8 1.587 7.781 0 6 0 z" Fill="{TemplateBinding Foreground}"/>
                                                            <Path Data="m 11.517 6.574 c 0 0 -1.036 -1.284 -1.517 -1.528 -0.201 -0.102 -1 0 -1 0 L 10 5.8 V 13 l 1.517 -3.557 c 0.484 -0.802 0.787 -2.077 0 -2.869 z" Fill="{TemplateBinding Foreground}"/>
                                                            <Path Data="m 9 13 c 0 0.553 0.439 1 0.982 1 h 5.035 C 15.561 14 16 13.553 16 13 l 0 0 c 0 -0.553 -0.439 -1 -0.982 -1 H 9.982 C 9.439 12 9 12.447 9 13 l 0 0 z" Fill="{TemplateBinding Foreground}"/>
                                                            <Path Data="m 1 15 c 0 0.553 0.439 1 0.982 1 H 7.017 C 7.561 16 8 15.553 8 15 l 0 0 C 8 14.447 7.561 14 7.018 14 H 1.982 C 1.439 14 1 14.447 1 15 l 0 0 z" Fill="{TemplateBinding Foreground}"/>
                                                        </Canvas>
                                                    </Viewbox>
                                                </Grid>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                        <MenuItem CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowLayoutDialogCommand}" Header="{Binding Title_Layout,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <Grid>
                                                    <Viewbox Stretch="Uniform">
                                                        <Canvas Width="16" Height="16">
                                                            <Canvas.RenderTransform>
                                                                <TranslateTransform X="0" Y="1"/>
                                                            </Canvas.RenderTransform>
                                                            <Path Data="M 1 1 V 3 H 16 V 1 H 1 z" Fill="{TemplateBinding Foreground}"/>
                                                            <Path Data="M 1 3 V 14 H 16 V 3 H 1 z M 15 13 H 2 V 4 h 13 v 9 z" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="3" Canvas.Top="5" Width="3" Height="1" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="3" Canvas.Top="7" Width="3" Height="1" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="3" Canvas.Top="9" Width="3" Height="1" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="3" Canvas.Top="11" Width="3" Height="1" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="7" Canvas.Top="5" Width="3" Height="3" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="11" Canvas.Top="5" Width="3" Height="3" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="7" Canvas.Top="9" Width="7" Height="3" Fill="{TemplateBinding Foreground}"/>
                                                        </Canvas>
                                                    </Viewbox>
                                                </Grid>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                        <Separator Style="{StaticResource ContextMenuSeparator}"/>
                                        <MenuItem x:Name="ProgressLineMenuItem" Visibility="{Binding ShowCellMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding ShowProgressLineDialogCommand}" Header="{Binding ToolTip_ProgressLine,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <Grid>
                                                    <Viewbox Stretch="Uniform">
                                                        <Canvas Width="16" Height="16">
                                                            <Rectangle Canvas.Left="1" Canvas.Top="5" Width="4" Height="1" Fill="{TemplateBinding Foreground}"/>
                                                            <Rectangle Canvas.Left="4" Canvas.Top="11" Width="4" Height="1" Fill="{TemplateBinding Foreground}"/>
                                                            <Polygon Points="8.857,15 10,15 10,9.008 10,8 10,7.593 7.618,5.509 10,3.425 10,3 10,2.01 10,1 8.857,1 8.857,3 8.868,3 6,5.509 8.857,8.008 " Fill="{TemplateBinding Foreground}"/>
                                                            <Polygon Points="1,3 1,8 7.5,8 6.5,7 2,7 2,4 6.5,4 7.5,3 " Fill="{TemplateBinding Foreground}"/>
                                                            <Polygon Points="4,9 4,14 8,14 8,13 5,13 5,10 8,10 8,9 " Fill="{TemplateBinding Foreground}"/>
                                                            <Polygon Points="11,14 16,14 16,9 11,9 11,10 15,10 15,13 11,13 " Fill="{TemplateBinding Foreground}"/>
                                                            <Polygon Points="11,8 13,8 13,3 11,3 11,4 12,4 12,7 11,7 " Fill="{TemplateBinding Foreground}"/>
                                                        </Canvas>
                                                    </Viewbox>
                                                </Grid>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                        <MenuItem Visibility="{Binding ShowCellMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding DeleteTaskCommand}" Header="{Binding ToolTip_DeleteTask,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <TextBlock Text="&#xE106;" Opacity="{Binding DeleteTaskOpacity}" FontFamily="Segoe UI Symbol" VerticalAlignment="Center" Foreground="{TemplateBinding Foreground}"/>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                        <MenuItem Visibility="{Binding ShowCellMenu,Converter={StaticResource VisibilityConverter}}" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}}" Command="{Binding SplitTaskCommand}" Header="{Binding ToolTip_SplitTask,Source={StaticResource Resources}}">
                                            <MenuItem.Icon>
                                                <TextBlock Text="&#xE0CD;" Opacity="{Binding SplitTaskOpacity}" FontFamily="Segoe UI Symbol" VerticalAlignment="Center" Foreground="{TemplateBinding Foreground}"/>
                                            </MenuItem.Icon>
                                        </MenuItem>
                                    </ContextMenu>
                                </c1GanttView:ChartView.ContextMenu>
                            </c1GanttView:ChartView>
                            <Grid x:Name="NotificationGrid" Grid.Row="1" Grid.Column="2"/>
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>