예제 #1
0
        internal RoutedEvent(
            RoutedEventFlag flag,
            [CallerMemberName] string name = null)
        {
            Flag = flag;
            Name = name;

            IsPointerEvent = flag.IsPointerEvent();
            IsGestureEvent = flag.IsGestureEvent();
            IsKeyEvent     = flag.IsKeyEvent();
            IsFocusEvent   = flag.IsFocusEvent();
        }
예제 #2
0
        internal RoutedEvent(
            RoutedEventFlag flag,
            [CallerMemberName] string name = null)
        {
            Flag = flag;
            Name = name;

            IsPointerEvent      = flag.IsPointerEvent();
            IsKeyEvent          = flag.IsKeyEvent();
            IsFocusEvent        = flag.IsFocusEvent();
            IsManipulationEvent = flag.IsManipulationEvent();
            IsGestureEvent      = flag.IsGestureEvent();
            IsDragAndDropEvent  = flag.IsDragAndDropEvent();

            IsAlwaysBubbled = IsPointerEvent || IsGestureEvent || IsManipulationEvent || IsDragAndDropEvent;
        }