/// <summary> /// Event Handle from Cursor event /// </summary> /// <param name="sender">The control that raised the event.</param> /// <param name="e">The event arguments.</param> public void myInkCollector_CursorDown(object sender, InkCollectorCursorDownEventArgs e) { // If the pen is inverted, this application will perform stroke // erasing; since we do not want to show the pen while the user // is erasing, make this stroke transparent. if (e.Cursor.Inverted) { e.Stroke.DrawingAttributes.Transparency = 255; } }
private void IC_CursorDown(object sender, InkCollectorCursorDownEventArgs e) { Root.FormDisplay.ClearCanvus(Root.FormDisplay.gOneStrokeCanvus); Root.FormDisplay.DrawStrokes(Root.FormDisplay.gOneStrokeCanvus); Root.FormDisplay.DrawButtons(Root.FormDisplay.gOneStrokeCanvus, false); }