Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        public DataPointGroup(ChartBase parentChart, string caption, bool showcaption)
        {
            ParentChart = parentChart;
            Caption     = caption;
            ShowCaption = showcaption;

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

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