Exemplo n.º 1
0
 private static void UpdateGridLineStyle(GridLinesInfo gridLinesInfo, Style lineStyle)
 {
     if (gridLinesInfo != null)
     {
         gridLinesInfo.LineStyle = lineStyle;
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CartesianChartGrid"/> class.
        /// </summary>
        public CartesianChartGrid()
        {
            this.DefaultStyleKey = typeof(CartesianChartGrid);
            this.grid            = new CartesianChartGridModel();

            this.majorXLines = new GridLinesInfo(this, GridLineVisibility.X);
            this.majorYLines = new GridLinesInfo(this, GridLineVisibility.Y);

            this.xStripes = new List <Rectangle>();
            this.yStripes = new List <Rectangle>();

            this.xStripeBrushes = new ObservableCollection <Brush>();
            this.xStripeBrushes.CollectionChanged += this.OnXStripeStylesChanged;

            this.yStripeBrushes = new ObservableCollection <Brush>();
            this.yStripeBrushes.CollectionChanged += this.OnYStripeStylesChanged;
        }