Example #1
0
        private static void PointsPropertyChangedHandler(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            HeatmapGraph linePlot = (HeatmapGraph)d;

            if (linePlot != null)
            {
                InteractiveDataDisplay.WPF.Plot.SetPoints(linePlot.polyline, (PointCollection)e.NewValue);
            }
        }
Example #2
0
        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();
        }
Example #3
0
        private static void OnStrokeDashArrayChanged(object target, DependencyPropertyChangedEventArgs e)
        {
            HeatmapGraph lineGraph = (HeatmapGraph)target;

            lineGraph.polyline.StrokeDashArray = e.NewValue as DoubleCollection;
        }
Example #4
0
        private static void OnStrokeChanged(object target, DependencyPropertyChangedEventArgs e)
        {
            HeatmapGraph lineGraph = (HeatmapGraph)target;

            lineGraph.polyline.Stroke = e.NewValue as Brush;
        }