Ejemplo n.º 1
0
 internal WordCompletionPresenter(IPopupIntellisensePresenter source)
 {
     _popupIntellisensePresenter = source;
     _intellisenseCommandTarget  = source as IIntellisenseCommandTarget;
     _mouseProcessor             = source as IMouseProcessor;
     _disposable         = source as IDisposable;
     _componentConnector = source as IComponentConnector;
 }
Ejemplo n.º 2
0
 internal WordCompletionPresenter(IPopupIntellisensePresenter source)
 {
     _popupIntellisensePresenter = source;
     _intellisenseCommandTarget = source as IIntellisenseCommandTarget;
     _mouseProcessor = source as IMouseProcessor;
     _disposable = source as IDisposable;
     _componentConnector = source as IComponentConnector;
 }
Ejemplo n.º 3
0
        public void PreprocessQueryContinueDrag(QueryContinueDragEventArgs e)
        {
            IMouseProcessor processor = Content as IMouseProcessor;

            if (processor != null)
            {
                processor.PreprocessQueryContinueDrag(e);
            }
        }
Ejemplo n.º 4
0
        public void PreprocessMouseWheel(System.Windows.Input.MouseWheelEventArgs e)
        {
            IMouseProcessor processor = Content as IMouseProcessor;

            if (processor != null)
            {
                processor.PreprocessMouseWheel(e);
            }
        }
Ejemplo n.º 5
0
        public void PreprocessMouseRightButtonUp(System.Windows.Input.MouseButtonEventArgs e)
        {
            IMouseProcessor processor = Content as IMouseProcessor;

            if (processor != null)
            {
                processor.PreprocessMouseRightButtonUp(e);
            }
        }
Ejemplo n.º 6
0
        public void PreprocessGiveFeedback(GiveFeedbackEventArgs e)
        {
            IMouseProcessor processor = Content as IMouseProcessor;

            if (processor != null)
            {
                processor.PreprocessGiveFeedback(e);
            }
        }
Ejemplo n.º 7
0
        public void PreprocessDrop(DragEventArgs e)
        {
            IMouseProcessor processor = Content as IMouseProcessor;

            if (processor != null)
            {
                processor.PreprocessDrop(e);
            }
        }
Ejemplo n.º 8
0
        public void PostprocessMouseMove(System.Windows.Input.MouseEventArgs e)
        {
            IMouseProcessor processor = Content as IMouseProcessor;

            if (processor != null)
            {
                processor.PostprocessMouseMove(e);
            }
        }
Ejemplo n.º 9
0
        public void PostprocessMouseLeftButtonDown(System.Windows.Input.MouseButtonEventArgs e)
        {
            IMouseProcessor processor = Content as IMouseProcessor;

            if (processor != null)
            {
                processor.PostprocessMouseLeftButtonDown(e);
            }
        }
Ejemplo n.º 10
0
        public void PostprocessDragOver(DragEventArgs e)
        {
            IMouseProcessor processor = Content as IMouseProcessor;

            if (processor != null)
            {
                processor.PostprocessDragOver(e);
            }
        }
Ejemplo n.º 11
0
		public MouseProcessorCollection(UIElement mouseElement, UIElement manipulationElement, DefaultMouseProcessor defaultMouseProcessor, IMouseProcessor[] mouseProcessors, Func<MouseEventArgs, bool> allowEvent) {
			if (mouseElement == null)
				throw new ArgumentNullException(nameof(mouseElement));
			if (defaultMouseProcessor == null)
				throw new ArgumentNullException(nameof(defaultMouseProcessor));
			if (mouseProcessors == null)
				throw new ArgumentNullException(nameof(mouseProcessors));
			this.mouseElement = mouseElement;
			this.manipulationElement = manipulationElement;
			this.defaultMouseProcessor = defaultMouseProcessor;
			this.mouseProcessors = mouseProcessors;
			this.allowEvent = allowEvent ?? defaultAllowEvent;
			mouseElement.AddHandler(UIElement.QueryContinueDragEvent, new QueryContinueDragEventHandler(MouseElement_QueryContinueDrag), true);
			mouseElement.AddHandler(UIElement.MouseWheelEvent, new MouseWheelEventHandler(MouseElement_MouseWheel), true);
			mouseElement.AddHandler(UIElement.MouseUpEvent, new MouseButtonEventHandler(MouseElement_MouseUp), true);
			mouseElement.AddHandler(UIElement.MouseRightButtonUpEvent, new MouseButtonEventHandler(MouseElement_MouseRightButtonUp), true);
			mouseElement.AddHandler(UIElement.MouseRightButtonDownEvent, new MouseButtonEventHandler(MouseElement_MouseRightButtonDown), true);
			mouseElement.AddHandler(UIElement.MouseMoveEvent, new MouseEventHandler(MouseElement_MouseMove), true);
			mouseElement.AddHandler(UIElement.MouseLeftButtonUpEvent, new MouseButtonEventHandler(MouseElement_MouseLeftButtonUp), true);
			mouseElement.AddHandler(UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(MouseElement_MouseLeftButtonDown), true);
			mouseElement.AddHandler(UIElement.MouseLeaveEvent, new MouseEventHandler(MouseElement_MouseLeave), true);
			mouseElement.AddHandler(UIElement.MouseEnterEvent, new MouseEventHandler(MouseElement_MouseEnter), true);
			mouseElement.AddHandler(UIElement.MouseDownEvent, new MouseButtonEventHandler(MouseElement_MouseDown), true);
			mouseElement.AddHandler(UIElement.GiveFeedbackEvent, new GiveFeedbackEventHandler(MouseElement_GiveFeedback), true);
			mouseElement.AddHandler(UIElement.DropEvent, new DragEventHandler(MouseElement_Drop), true);
			mouseElement.AddHandler(UIElement.DragOverEvent, new DragEventHandler(MouseElement_DragOver), true);
			mouseElement.AddHandler(UIElement.DragLeaveEvent, new DragEventHandler(MouseElement_DragLeave), true);
			mouseElement.AddHandler(UIElement.DragEnterEvent, new DragEventHandler(MouseElement_DragEnter), true);
			if (manipulationElement != null) {
				manipulationElement.AddHandler(UIElement.TouchUpEvent, new EventHandler<TouchEventArgs>(ManipulationElement_TouchUp), true);
				manipulationElement.AddHandler(UIElement.TouchDownEvent, new EventHandler<TouchEventArgs>(ManipulationElement_TouchDown), true);
				manipulationElement.AddHandler(UIElement.StylusSystemGestureEvent, new StylusSystemGestureEventHandler(ManipulationElement_StylusSystemGesture), true);
				manipulationElement.AddHandler(UIElement.ManipulationStartingEvent, new EventHandler<ManipulationStartingEventArgs>(ManipulationElement_ManipulationStarting), true);
				manipulationElement.AddHandler(UIElement.ManipulationInertiaStartingEvent, new EventHandler<ManipulationInertiaStartingEventArgs>(ManipulationElement_ManipulationInertiaStarting), true);
				manipulationElement.AddHandler(UIElement.ManipulationDeltaEvent, new EventHandler<ManipulationDeltaEventArgs>(ManipulationElement_ManipulationDelta), true);
				manipulationElement.AddHandler(UIElement.ManipulationCompletedEvent, new EventHandler<ManipulationCompletedEventArgs>(ManipulationElement_ManipulationCompleted), true);
			}
		}