private static void OnMarkerTemplatePropertyChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            MarkerGraph m = sender as MarkerGraph;

            foreach (var b in m.batches)
            {
                b.Panel.Children.Clear();
            }
            m.StartRenderTask(false);
            m.InvalidateBounds();
        }
        private static void OnStrokeThicknessPropertyChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            MarkerGraph m = sender as MarkerGraph;

            m.StartRenderTask(false);
            foreach (var b in m.batches)
            {
                b.AddChangedProperties(new string[] { "StrokeThickness" });
            }
            m.InvalidateMeasure();
        }
        private static void OnSourcesChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MarkerGraph    me  = (MarkerGraph)d;
            DataCollection col = (DataCollection)e.NewValue;

            if (e.OldValue != null)
            {
                ((DataCollection)e.OldValue).CollectionChanged -= me.OnSourceCollectionChanged;
                ((DataCollection)e.OldValue).DataSeriesUpdated -= me.OnSourceDataUpdated;
            }
            col.CollectionChanged += me.OnSourceCollectionChanged;
            col.DataSeriesUpdated += me.OnSourceDataUpdated;

            // Signal about total change of collection
            me.OnSourceCollectionChanged(me, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
        }
Exemple #4
0
 /// <summary>
 /// Gets template for marker legend with information about Y <see cref="DataSeries"/>,
 /// <see cref="ColorSeries"/> and <see cref="SizeSeries"/>.
 /// </summary>
 /// <param name="mg">Marker graph to get template for.</param>
 /// <returns>A template used for legend of particular marker graph.</returns>
 public abstract DataTemplate GetColorSizeLegendTemplate(MarkerGraph mg);
Exemple #5
0
 /// <summary>
 /// Gets template for marker legend with information about Y <see cref="DataSeries"/>.
 /// </summary>
 /// <param name="mg">Marker graph to get template for.</param>
 /// <returns>A template used for legend of particular marker graph.</returns>
 public abstract DataTemplate GetYLegendTemplate(MarkerGraph mg);
Exemple #6
0
 /// <summary>
 /// Gets a template for markers.
 /// </summary>
 /// <param name="mg">Marker graph to get template for.</param>
 /// <returns>A template used for markers of particular marker graph.</returns>
 public abstract DataTemplate GetMarkerTemplate(MarkerGraph mg);