Exemplo 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);
        }
Exemplo 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;
        }
Exemplo n.º 3
0
        public async static void DataContextWatcher_Changed(
            DependencyObject sender,
            DependencyPropertyChangedEventArgs args)
        {
            ChartBase senderControl = sender as ChartBase;

            if (senderControl != null)
            {
                if (Window.Current != null && Window.Current.Visible)
                {
                    await Window.Current.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
                    {
                    });
                }
                (senderControl as ChartBase).InternalDataContextChanged();
            }
        }
Exemplo n.º 4
0
 public DataPoint(ChartBase parentChart)
 {
     ParentChart = parentChart;
 }