Пример #1
0
 private void PlotAxisLoaded(object sender, RoutedEventArgs e)
 {
     masterPlot = PlotBase.FindMaster(this);
     if (masterPlot != null)
     {
         InvalidateAxis();
     }
 }
Пример #2
0
        private void LegendItemsPanelLoaded(object sender, RoutedEventArgs e)
        {
            if (MasterPlot == null)
            {
                masterPlot = PlotBase.FindMaster(this);
            }
            else
            {
                masterPlot = MasterPlot;
            }

            Resubscribe();
        }
Пример #3
0
        void MouseNavigationLoaded(object sender, RoutedEventArgs e)
        {
            masterPlot = PlotBase.FindMaster(this);

            if (masterPlot != null)
            {
                masterPlot.MouseLeave          += MouseNavigationLayer_MouseLeave;
                masterPlot.MouseMove           += MouseNavigationLayer_MouseMove;
                masterPlot.MouseLeftButtonUp   += MouseNavigationLayer_MouseLeftButtonUp;
                masterPlot.MouseLeftButtonDown += MouseNavigationLayer_MouseLeftButtonDown;
                masterPlot.MouseWheel          += MouseNavigationLayer_MouseWheel;
            }

            var parent        = VisualTreeHelper.GetParent(this);
            var controlParent = parent as Control;

            while (parent != null && controlParent == null)
            {
                parent        = VisualTreeHelper.GetParent(parent);
                controlParent = parent as Control;
            }
            parentControl = controlParent;
        }
Пример #4
0
 void KeyboardNavigationLoaded(object sender, RoutedEventArgs e)
 {
     masterPlot = PlotBase.FindMaster(this);
 }