C# Class ICSharpCode.WpfDesign.Designer.Services.MouseGestureBase

Base class for classes handling mouse gestures on the design surface.
Exibir arquivo Open project: icsharpcode/WpfDesigner Class Usage Examples

Protected Properties

Property Type Description
canAbortWithEscape bool
designPanel IDesignPanel
services ServiceContainer

Public Methods

Method Description
IsOnlyButtonPressed ( System.Windows.Input.MouseEventArgs e, MouseButton button ) : bool

Checks if button is the only button that is currently pressed.

Start ( IDesignPanel designPanel, System.Windows.Input.MouseButtonEventArgs e ) : void

Protected Methods

Method Description
OnKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
OnLostMouseCapture ( object sender, System.Windows.Input.MouseEventArgs e ) : void
OnMouseDoubleClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OnMouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OnMouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
OnMouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OnPreviewMouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OnPreviewMouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OnPreviewMouseRightButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OnPreviewMouseRightButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OnStarted ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnStopped ( ) : void
RegisterEvents ( ) : void
Stop ( ) : void
UnRegisterEvents ( ) : void

Method Details

IsOnlyButtonPressed() public static method

Checks if button is the only button that is currently pressed.
public static IsOnlyButtonPressed ( System.Windows.Input.MouseEventArgs e, MouseButton button ) : bool
e System.Windows.Input.MouseEventArgs
button MouseButton
return bool

OnKeyDown() protected method

protected OnKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
sender object
e System.Windows.Input.KeyEventArgs
return void

OnLostMouseCapture() protected method

protected OnLostMouseCapture ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
return void

OnMouseDoubleClick() protected method

protected OnMouseDoubleClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
return void

OnMouseUp() protected method

protected OnMouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

OnPreviewMouseLeftButtonDown() protected method

protected OnPreviewMouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

OnPreviewMouseLeftButtonUp() protected method

protected OnPreviewMouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

OnPreviewMouseRightButtonDown() protected method

protected OnPreviewMouseRightButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

OnPreviewMouseRightButtonUp() protected method

protected OnPreviewMouseRightButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

OnStarted() protected method

protected OnStarted ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

OnStopped() protected method

protected OnStopped ( ) : void
return void

RegisterEvents() protected method

protected RegisterEvents ( ) : void
return void

Start() public method

public Start ( IDesignPanel designPanel, System.Windows.Input.MouseButtonEventArgs e ) : void
designPanel IDesignPanel
e System.Windows.Input.MouseButtonEventArgs
return void

Stop() protected method

protected Stop ( ) : void
return void

UnRegisterEvents() protected method

protected UnRegisterEvents ( ) : void
return void

Property Details

canAbortWithEscape protected_oe property

protected bool canAbortWithEscape
return bool

designPanel protected_oe property

protected IDesignPanel designPanel
return IDesignPanel

services protected_oe property

protected ServiceContainer services
return ServiceContainer