C# Class CodeConnect.Touch.EditorExtensibility

Sets up a touch event that launches the TouchVS control.
Show file Open project: CodeConnect/TouchVS

Public Methods

Method Description
EditorExtensibility ( IWpfTextView view ) : System

Initializes a new instance of the TouchAdornment class. Creates a square image and attaches an event handler to the layout changed event that adds the the square in the upper right-hand corner of the TextView via the adornment layer

Private Methods

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

Show the menu on middle mouse down press TODO: Prevent showing the menu when the user was drag-scrolling using the middle mouse button

TouchAdornment_TouchDown ( object sender, System.Windows.Input.TouchEventArgs e ) : void
TouchAdornment_TouchUp ( object sender, System.Windows.Input.TouchEventArgs e ) : void

Implementation 2: Double tap to start

Method Details

EditorExtensibility() public method

Initializes a new instance of the TouchAdornment class. Creates a square image and attaches an event handler to the layout changed event that adds the the square in the upper right-hand corner of the TextView via the adornment layer
public EditorExtensibility ( IWpfTextView view ) : System
view IWpfTextView The upon which the adornment will be drawn
return System