WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IMouseEventsTarget

    Show / Hide Table of Contents

    Interface IMouseEventsTarget

    This interface provides methods that the ScrollControl class can call to forward mouse events in the MouseEventListeners collection.

    Namespace: Syncfusion.Windows.Controls.Scroll
    Assembly: Syncfusion.GridCommon.Wpf.dll
    Syntax
    public interface IMouseEventsTarget

    Methods

    OnDrop(DragEventArgs)

    Invoked when an unhandled  attached event is raised on the host element.

    Declaration
    void OnDrop(DragEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DragEventArgs e

    The System.Windows.DragEventArgs instance containing the event data.

    OnMouseDown(MouseButtonEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.MouseDownEvent attached event is raised on the host element.

    Declaration
    void OnMouseDown(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.MouseButtonEventArgs instance containing the event data.

    OnMouseEnter(MouseEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.MouseEnterEvent attached event is raised on the host element.

    Declaration
    void OnMouseEnter(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    The System.Windows.Input.MouseEventArgs instance containing the event data.

    OnMouseLeave(MouseEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.MouseLeaveEvent attached event is raised on the host element.

    Declaration
    void OnMouseLeave(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    The System.Windows.Input.MouseEventArgs instance containing the event data.

    OnMouseMove(MouseEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.MouseMoveEvent attached event is raised on the host element.

    Declaration
    void OnMouseMove(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    The System.Windows.Input.MouseEventArgs instance containing the event data.

    OnMouseUp(MouseButtonEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.MouseUpEvent attached event is raised on the host element.

    Declaration
    void OnMouseUp(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.MouseButtonEventArgs instance containing the event data.

    OnMouseWheel(MouseWheelEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.MouseWheelEvent attached event is raised on the host element.

    Declaration
    void OnMouseWheel(MouseWheelEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseWheelEventArgs e

    The System.Windows.Input.MouseWheelEventArgs instance containing the event data.

    OnPreviewMouseDown(MouseButtonEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseDownEvent attached event is raised on the host element.

    Declaration
    void OnPreviewMouseDown(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.MouseButtonEventArgs instance containing the event data.

    OnPreviewMouseMove(MouseEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseMoveEvent attached event is raised on the host element.

    Declaration
    void OnPreviewMouseMove(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    The System.Windows.Input.MouseEventArgs instance containing the event data.

    OnPreviewMouseUp(MouseButtonEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseUpEvent attached event is raised on the host element.

    Declaration
    void OnPreviewMouseUp(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.MouseButtonEventArgs instance containing the event data.

    OnPreviewMouseWheel(MouseWheelEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.PreviewMouseWheelEvent attached event is raised on the host element.

    Declaration
    void OnPreviewMouseWheel(MouseWheelEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseWheelEventArgs e

    The System.Windows.Input.MouseWheelEventArgs instance containing the event data.

    SetHost(FrameworkElement)

    Sets the host.

    Declaration
    void SetHost(FrameworkElement host)
    Parameters
    Type Name Description
    System.Windows.FrameworkElement host

    The host.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved