Пример #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);
        }
Пример #2
0
        public DataPointGroup(ChartBase parentChart, string caption, bool showcaption)
        {
            ParentChart = parentChart;
            Caption     = caption;
            ShowCaption = showcaption;

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

            if (senderControl != null)
            {
                (senderControl as ChartBase).InternalDataContextChanged();
            }
        }
Пример #4
0
 public DataPoint(ChartBase parentChart)
 {
     ParentChart = parentChart;
 }