public static EventTriggerCondition Register(FrameworkElement element, RoutedEvent routedEvent) { EventTriggerCondition condition = new EventTriggerCondition(element, routedEvent); condition.Register(); return(condition); }
public override IEventTriggerCondition CreateEventTriggerCondition(FrameworkElement element) { if (RoutedEvent == null) { throw new Granular.Exception("EventTrigger.RoutedEvent cannot be null"); } return(EventTriggerCondition.Register(element, RoutedEvent)); }
public static EventTriggerCondition Register(FrameworkElement element, RoutedEvent routedEvent) { EventTriggerCondition condition = new EventTriggerCondition(element, routedEvent); condition.Register(); return condition; }