Beispiel #1
0
        private static void OnSeriesSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            IEnumerable oldValue = (IEnumerable)e.OldValue;
            IEnumerable newValue = (IEnumerable)e.NewValue;
            ChartBase   source   = (ChartBase)d;

            source.OnSeriesSourceChanged(oldValue, newValue);
        }
        public DataPointGroup(ChartBase parentChart, string caption, bool showcaption)
        {
            ParentChart = parentChart;
            Caption     = caption;
            ShowCaption = showcaption;

            DataPoints = new ObservableCollection <DataPoint>();
            DataPoints.CollectionChanged += Items_CollectionChanged;
        }
Beispiel #3
0
        public static void DataContextWatcher_Changed(
            DependencyObject sender,
            DependencyPropertyChangedEventArgs args)
        {
            ChartBase senderControl = sender as ChartBase;

            if (senderControl != null)
            {
                (senderControl as ChartBase).InternalDataContextChanged();
            }
        }
Beispiel #4
0
 public DataPoint(ChartBase parentChart)
 {
     ParentChart = parentChart;
 }