예제 #1
0
 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);
     }
 }
예제 #2
0
 public static void SetCrosshairVisibility(DependencyObject target, ChartCrosshairVisibilityBehavior behavior)
 {
     target.SetValue(CrosshairVisibilityProperty, behavior);
 }