private static void PointsPropertyChangedHandler(DependencyObject d, DependencyPropertyChangedEventArgs e) { HeatmapGraph linePlot = (HeatmapGraph)d; if (linePlot != null) { InteractiveDataDisplay.WPF.Plot.SetPoints(linePlot.polyline, (PointCollection)e.NewValue); } }
private static void OnPalettePropertyChanged(object sender, DependencyPropertyChangedEventArgs e) { HeatmapGraph heatmap = (HeatmapGraph)sender; lock (heatmap.locker) { heatmap.paletteRangeUpdateRequired = true; heatmap.palette = (Palette)e.NewValue; } heatmap.QueueRenderTask(); }
private static void OnStrokeDashArrayChanged(object target, DependencyPropertyChangedEventArgs e) { HeatmapGraph lineGraph = (HeatmapGraph)target; lineGraph.polyline.StrokeDashArray = e.NewValue as DoubleCollection; }
private static void OnStrokeChanged(object target, DependencyPropertyChangedEventArgs e) { HeatmapGraph lineGraph = (HeatmapGraph)target; lineGraph.polyline.Stroke = e.NewValue as Brush; }