Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 2.91 KB

inkinputconfiguration.md

File metadata and controls

40 lines (31 loc) · 2.91 KB
-api-id -api-type
T:Windows.UI.Input.Inking.InkInputConfiguration
winrt class

Windows.UI.Input.Inking.InkInputConfiguration

-description

Manages which types of secondary input can be processed by the InkPresenter object.

-remarks

To manage how secondary input is processed by your app, see InkInputProcessingConfiguration.

-examples

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; 
} 

-see-also

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