Пример #1
0
        private static void OnVisiblePointsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PointsGraphBase graph = d as PointsGraphBase;

            if (graph != null)
            {
                graph.RaiseVisiblePointsChanged();
            }
        }
        private static void OnDataSourceChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PointsGraphBase graph = (PointsGraphBase)d;

            if (e.NewValue != e.OldValue)
            {
                graph.DetachDataSource(e.OldValue as IPointDataSource);
                graph.AttachDataSource(e.NewValue as IPointDataSource);
            }
            graph.OnDataSourceChanged(e);
        }