private static void OnMajorYLineStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CartesianChartGrid presenter = d as CartesianChartGrid;

            UpdateGridLineStyle(presenter.majorYLines, e.NewValue as Style);
            presenter.InvalidateCore();
        }
        private static void OnMajorLinesVisibilityChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CartesianChartGrid presenter = d as CartesianChartGrid;
            GridLineVisibility value     = (GridLineVisibility)e.NewValue;

            presenter.majorLinesVisibilityCache = value;

            presenter.majorXLines.Visible = (value & GridLineVisibility.X) == GridLineVisibility.X;
            presenter.majorYLines.Visible = (value & GridLineVisibility.Y) == GridLineVisibility.Y;

            presenter.InvalidateCore();
        }