예제 #1
0
        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();
        }
예제 #2
0
            public GridLinesInfo(CartesianChartGrid owner, GridLineVisibility visibility)
            {
                this.Owner = owner;

                if (visibility == GridLineVisibility.X)
                {
                    this.Orientation = Windows.UI.Xaml.Controls.Orientation.Vertical;
                }
                else
                {
                    this.Orientation = Windows.UI.Xaml.Controls.Orientation.Horizontal;
                }
            }