Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MouseButtonEventArgs.ClickCount Property

Gets the number of times the button was clicked.

Namespace:  System.Windows.Input
Assembly:  System.Windows (in System.Windows.dll)

public int ClickCount { get; }

Property Value

Type: System.Int32
The number of times the mouse button was clicked.

One use of ClickCount is to determine whether a double mouse click has occurred. The determation for the count is potentially based on time thresholds for reporting double-clicks that are user-adjustable as operating system settings.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show:
© 2017 Microsoft