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(); }
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; } }