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