-api-id | -api-type |
---|---|
T:Windows.UI.Input.Inking.InkInputConfiguration |
winrt class |
Manages which types of secondary input can be processed by the InkPresenter object.
To manage how secondary input is processed by your app, see InkInputProcessingConfiguration.
Here, we show how to accept input as ink from pen, touch, and mouse devices, but ignore all input from pen barrel buttons and eraser tips.
public ScenarioBarrelEraserIgnore()
{
this.InitializeComponent();
var inkPresenter = inkCanvas.InkPresenter;
inkPresenter.InputDeviceTypes =
Windows.UI.Core.CoreInputDeviceTypes.Pen |
Windows.UI.Core.CoreInputDeviceTypes.Touch |
Windows.UI.Core.CoreInputDeviceTypes.Mouse;
InkInputConfiguration inkInputConfiguration =
inkPresenter.InputConfiguration;
inkInputConfiguration.IsEraserInputEnabled = false;
inkInputConfiguration.IsPrimaryBarrelButtonInputEnabled = false;
}
InkPresenter.InputConfiguration, 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