<UserControl x:Class="TaskIt.Modules.Dashboard.Views.TasksOverview"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:telerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"     
    xmlns:chart="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting" 
    xmlns:activity="clr-namespace:System.Windows.Controls;assembly=ActivityControl" 
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <UserControl.Resources>
        <Style x:Key="HorizontalStripLineStyle" TargetType="Rectangle" >
            <Setter Property="Fill" Value="#26FFFFFF" />
        </Style>
        
        <Style x:Key="VerticalStripLineStyle" TargetType="Rectangle" >
            <Setter Property="Fill" Value="#19FFFFFF" />
        </Style>
    </UserControl.Resources>

    <Grid>
        <telerikChart:RadChart x:Name="chtData" ItemsSource="{Binding TasksOverviewStatistics}" AxisForeground="{StaticResource ControlForegroundBrush}" AxisElementBrush="{StaticResource ControlForegroundBrush}" >
            <telerikChart:RadChart.DefaultView>
                <chart:ChartDefaultView>
                    <chart:ChartDefaultView.ChartArea>
                        <chart:ChartArea LegendName="Legend1">
                            <chart:ChartArea.AxisX>
                                <chart:AxisX>
                                    <chart:AxisX.AxisStyles>
                                        <chart:AxisStyles AlternateStripLineStyle="{StaticResource HorizontalStripLineStyle}" />
                                    </chart:AxisX.AxisStyles>
                                </chart:AxisX>
                            </chart:ChartArea.AxisX>
                            <chart:ChartArea.AxisY>
                                <chart:AxisY>
                                    <chart:AxisY.AxisStyles>
                                        <chart:AxisStyles AlternateStripLineStyle="{StaticResource VerticalStripLineStyle}" />
                                    </chart:AxisY.AxisStyles>
                                </chart:AxisY>
                            </chart:ChartArea.AxisY>
                        </chart:ChartArea>
                    </chart:ChartDefaultView.ChartArea>
                </chart:ChartDefaultView>
            </telerikChart:RadChart.DefaultView>
        </telerikChart:RadChart>
        <activity:Activity IsActive="{Binding IsOperationInProgress}" ActiveContent="{Binding ResourceMessageLoadingData}"/>
    </Grid>

</UserControl>
