private static void OnChartCrosshairsBehaviorChanged(XamDataChart chart, ChartCrosshairVisibilityBehavior oldValue, ChartCrosshairVisibilityBehavior newValue) { if (chart == null) { return; } if (oldValue != null) { oldValue.OnDetach(chart); } if (newValue != null) { newValue.OnAttach(chart); } }
public static void SetCrosshairVisibility(DependencyObject target, ChartCrosshairVisibilityBehavior behavior) { target.SetValue(CrosshairVisibilityProperty, behavior); }