private void PlotAxisLoaded(object sender, RoutedEventArgs e) { masterPlot = PlotBase.FindMaster(this); if (masterPlot != null) { InvalidateAxis(); } }
private void LegendItemsPanelLoaded(object sender, RoutedEventArgs e) { if (MasterPlot == null) { masterPlot = PlotBase.FindMaster(this); } else { masterPlot = MasterPlot; } Resubscribe(); }
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; }
void KeyboardNavigationLoaded(object sender, RoutedEventArgs e) { masterPlot = PlotBase.FindMaster(this); }