C# Class SilverlightMappingToolBasic.MouseClickManager

Mostrar archivo Open project: chris-tomich/Glyma

Private Properties

Property Type Description
OnClick void
OnDoubleClick void
OnHeldClick void
ResetDoubleClickThread void
ResetHeldClickThread void

Public Methods

Method Description
HandleMouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
HandleMouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Handles the click.

MouseClickManager ( FrameworkElement frameworkElement ) : System

Initializes a new instance of the MouseClickManager class with default values Double Click Timeout = 400ms Held Click Timeout = 2000ms.

MouseClickManager ( FrameworkElement control, int doubleClickTimeout, int heldClickTimeout ) : System

Initializes a new instance of the MouseClickManager class.

Private Methods

Method Description
OnClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Called when [click].

OnDoubleClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Called when [double click].

OnHeldClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Called when the mouse is held down for a set period.

ResetDoubleClickThread ( object state ) : void

Resets the thread.

ResetHeldClickThread ( object state ) : void

Method Details

HandleMouseDown() public method

public HandleMouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

HandleMouseUp() public method

Handles the click.
public HandleMouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object The sender.
e System.Windows.Input.MouseButtonEventArgs The instance containing the event data.
return void

MouseClickManager() public method

Initializes a new instance of the MouseClickManager class with default values Double Click Timeout = 400ms Held Click Timeout = 2000ms.
public MouseClickManager ( FrameworkElement frameworkElement ) : System
frameworkElement System.Windows.FrameworkElement
return System

MouseClickManager() public method

Initializes a new instance of the MouseClickManager class.
public MouseClickManager ( FrameworkElement control, int doubleClickTimeout, int heldClickTimeout ) : System
control System.Windows.FrameworkElement
doubleClickTimeout int
heldClickTimeout int
return System