InkPresenter.InputDeviceTypes Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the input device type from which input data is collected by the InkPresenter to construct and render an InkStroke. The default is Pen.
public:
property CoreInputDeviceTypes InputDeviceTypes { CoreInputDeviceTypes get(); void set(CoreInputDeviceTypes value); };
CoreInputDeviceTypes InputDeviceTypes();
void InputDeviceTypes(CoreInputDeviceTypes value);
public CoreInputDeviceTypes InputDeviceTypes { get; set; }
var coreInputDeviceTypes = inkPresenter.inputDeviceTypes;
inkPresenter.inputDeviceTypes = coreInputDeviceTypes;
Public Property InputDeviceTypes As CoreInputDeviceTypes
Property Value
The input device types.
Examples
Here we specify that data from all supported input devices (CoreInputDeviceTypes) be collected by the InkPresenter and processed as ink input.
inkCanvas.InkPresenter.InputDeviceTypes =
Windows.UI.Core.CoreInputDeviceTypes.Mouse |
Windows.UI.Core.CoreInputDeviceTypes.Pen |
Windows.UI.Core.CoreInputDeviceTypes.Touch;
Remarks
If you set this property to None, you should remove listeners for all pointer events, including PointerEntered, PointerHovered, and PointerExited. In this case, pointer events are passed to the InkCanvas object and not to the InkPresenter object through InkPresenter.UnprocessedInput.
Applies to
See also
- Pen and stylus interactions
- Get started: Support ink in your UWP app
- Ink analysis sample (basic) (C#)
- Ink handwriting recognition sample (C#)
- Save and load ink strokes from an Ink Serialized Format (ISF) file
- Save and load ink strokes from the clipboard
- Ink toolbar location and orientation sample (basic)
- Ink toolbar location and orientation sample (dynamic)
- Coloring book sample
- Family notes sample
- Inking sample (JavaScript)
- Simple inking sample (C#/C++)
- Complex inking sample (C++)
- Ink analysis sample