skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder Design System Kit
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class MouseButtonEventArgs

Provides data for various events that report changes to the mouse wheel delta value of a mouse device.

Inheritance
System.Object
RadRoutedEventArgs
MouseButtonEventArgs
Inherited Members
RadRoutedEventArgs.InvokeEventHandler(Delegate, Object)
RadRoutedEventArgs.OnSetSource(Object)
RadRoutedEventArgs.RoutedEvent
RadRoutedEventArgs.Source
RadRoutedEventArgs.OriginalSource
Namespace: Telerik.Windows.Input
Assembly: Telerik.Windows.Controls.dll

Syntax

public class MouseButtonEventArgs : RadRoutedEventArgs

Properties

ButtonState

Gets the state of the button associated with the event.

Declaration
public MouseButtonState ButtonState { get; }
Property Value
MouseButtonState

ChangedButton

Gets the button associated with the event.

Declaration
public MouseButton ChangedButton { get; }
Property Value
MouseButton

ClickCount

Gets the number of times the button was clicked.

Declaration
public int ClickCount { get; }
Property Value
System.Int32

Handled

Gets or sets a value that marks the routed event as handled, and prevents most handlers along the event route from handling the same event again.

Declaration
public bool Handled { get; set; }
Property Value
System.Boolean

true to mark the routed event handled. false to leave the routed event unhandled, which permits the event to potentially route further and be acted on by other handlers. The default is false.

StylusDevice

Gets an object that reports stylus device information, such as the collection of stylus points associated with the input.

Declaration
public StylusDevice StylusDevice { get; }
Property Value
System.Windows.Input.StylusDevice

The stylus device information object.

Methods

GetPosition(UIElement)

Returns the x- and y-coordinates of the mouse pointer position, optionally evaluated against a coordinate origin of a supplied System.Windows.UIElement.

Declaration
public Point GetPosition(UIElement relativeTo)
Parameters
System.Windows.UIElement relativeTo

Any System.Windows.UIElement-derived object that is contained by the Silverlight plug-in and connected to the object tree. To specify the object relative to the overall Silverlight coordinate system, set the relativeTo parameter to null.

Returns
System.Windows.Point

A System.Windows.Point that represents the current x- and y-coordinates of the mouse pointer position. If null was passed as relativeTo, this coordinate is for the overall Silverlight plug-in content area. If a non-null relativeTo was passed, this coordinate is relative to the object referenced by relativeTo.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.