private static void AttachBehavior(FrameworkElement element) { var behavior = new GanttDoubleClickExtension(); behavior.Attach(element); SetBehavior(element, behavior); }
private static void SetBehavior(DependencyObject obj, GanttDoubleClickExtension value) { obj.SetValue(BehaviorProperty, value); }