menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ScrollControlMouseButtonEventArgs - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ScrollControlMouseButtonEventArgs

    Provides data for mouse button related events in the ScrollControl and allows you to specify whether the ScrollControls mouse event listeners should be prevented from handling the event with the SkipListeners property.

    Inheritance
    System.Object
    ScrollControlMouseButtonEventArgs
    Namespace: Syncfusion.Windows.Controls.Scroll
    Assembly: Syncfusion.GridCommon.WPF.dll
    Syntax
    public class ScrollControlMouseButtonEventArgs : MouseButtonEventArgs

    Constructors

    ScrollControlMouseButtonEventArgs(MouseDevice, Int32, MouseButton, StylusDevice)

    Initializes a new instance of the System.Windows.Input.MouseButtonEventArgs class by using the specified System.Windows.Input.MouseDevice, timestamp, and System.Windows.Input.MouseButton.

    Declaration
    public ScrollControlMouseButtonEventArgs(MouseDevice mouse, int timestamp, MouseButton button, StylusDevice stylusDevice)
    Parameters
    Type Name Description
    System.Windows.Input.MouseDevice mouse

    The logical mouse device associated with this event.

    System.Int32 timestamp

    The time the event occurred.

    System.Windows.Input.MouseButton button

    The button associated with this event.

    System.Windows.Input.StylusDevice stylusDevice

    The stylus device associated with this event.

    Properties

    SkipListeners

    Gets or sets a value indicating whether the ScrollControl should forward this event to registered MouseEventListeners. Set this property true if you do want to prevent the MouseControllerDispatcher and other listeners to handle this event. The property does not affect the System.Windows.RoutedEventArgs.Handled state of the underlying mouse event. You can however optionally set the System.Windows.RoutedEventArgs.Handled property to mark the underlying mouse event as handled.

    Declaration
    public bool SkipListeners { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if ScrollControl shoull prevent listeners from handling the event; otherwise, false.

    Methods

    InvokeEventHandler(Delegate, Object)

    Invokes event handlers in a type-specific way, which can increase event system efficiency.

    Declaration
    protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
    Parameters
    Type Name Description
    System.Delegate genericHandler

    The generic handler to call in a type-specific way.

    System.Object genericTarget

    The target to call the handler on.

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