コード例 #1
0
        private static void OnVisiblePointsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PointsGraphBase graph = d as PointsGraphBase;

            if (graph != null)
            {
                graph.RaiseVisiblePointsChanged();
            }
        }
コード例 #2
0
        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);
        }