예제 #1
0
        private static void OnConnectorLineStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            WaterfallSeries series = d as WaterfallSeries;

            if (e.NewValue != null)
            {
                foreach (WaterfallSegment segment in series.Segments)
                {
                    segment.LineSegment.Style = e.NewValue as Style;
                }
            }
        }
예제 #2
0
        /// <summary>
        /// Method used to update the segment and adornment interior color.
        /// </summary>
        /// <param name="series"></param>
        private static void OnUpdateSegmentandAdornmentInterior(WaterfallSeries series)
        {
            if (series.Area != null)
            {
                foreach (WaterfallSegment segment in series.Segments)
                {
                    segment.BindProperties();
                }

                foreach (var adornment in series.Adornments)
                {
                    var segment = series.Segments.FirstOrDefault(seg => seg.Item == adornment.Item) as WaterfallSegment;

                    if (segment is WaterfallSegment)
                    {
                        adornment.BindWaterfallSegmentInterior(segment);
                    }
                }
            }
        }
예제 #3
0
 /// <summary>
 /// Defines the Column Rectangle
 /// </summary>
 /// <param name="x1"></param>
 /// <param name="y1"></param>
 /// <param name="x2"></param>
 /// <param name="y2"></param>
 /// <param name="series"></param>
 public WaterfallSegment(double x1, double y1, double x2, double y2, WaterfallSeries series)
 {
     base.Series = series;
     SetData(x1, y1, x2, y2);
 }