Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
        protected override void FillAffectedEvents(List <RaisedRoutedEvent> inList)
        {
            RaisedRoutedEvent routedEvent = new RaisedRoutedEvent(this.RoutedEvent, this.sender, this.senderType, this.Direction);

            inList.Add(routedEvent);
        }
Ejemplo n.º 4
0
 /// <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;
 }
Ejemplo n.º 5
0
 public RoutedEventBehavior(RaisedRoutedEvent raisedRoutedEvent)
 {
     this.raisedRoutedEvent = raisedRoutedEvent;
 }