public bool IsSameEvent(RaisedRoutedEvent targetEvent) { bool flag = false; if (string.Compare(this.RoutedEvent.EventName, targetEvent.RoutedEvent.EventName, true) == 0 && this.direction == targetEvent.direction) { flag = this.Sender == targetEvent.Sender; } return(flag); }
/// <summary> /// Compares the instance with another event passed as a parameter. /// </summary> /// <param name="targetEvent"></param> /// <returns></returns> public bool IsSameEvent(RaisedRoutedEvent targetEvent) { bool res = false; if (string.Compare(this.RoutedEvent.EventName, targetEvent.RoutedEvent.EventName, true) == 0) { if (this.direction == targetEvent.direction) { res = this.Sender == targetEvent.Sender; } } return(res); }
protected override void FillAffectedEvents(List <RaisedRoutedEvent> inList) { RaisedRoutedEvent routedEvent = new RaisedRoutedEvent(this.RoutedEvent, this.sender, this.senderType, this.Direction); inList.Add(routedEvent); }
/// <summary> /// Initializes a new instance of the RoutedEventStyleBehavior class using /// the fired routed event, element selector, and property settings. /// </summary> /// <param name="raisedRoutedEvent"></param> /// <param name="selector"></param> /// <param name="propertySettings"></param> public RoutedEventStyleBehavior(RaisedRoutedEvent raisedRoutedEvent, IElementSelector selector, PropertySettingCollection propertySettings) : base(raisedRoutedEvent) { this.selector = selector; this.propertySettings = propertySettings; }
public RoutedEventBehavior(RaisedRoutedEvent raisedRoutedEvent) { this.raisedRoutedEvent = raisedRoutedEvent; }