示例#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);
            }
        }
示例#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();
        }
示例#3
0
        private static void OnStrokeDashArrayChanged(object target, DependencyPropertyChangedEventArgs e)
        {
            HeatmapGraph lineGraph = (HeatmapGraph)target;

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

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