InkInputProcessingConfiguration Class
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.
Manages how input is processed by the InkPresenter object.
public ref class InkInputProcessingConfiguration sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class InkInputProcessingConfiguration final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class InkInputProcessingConfiguration
Public NotInheritable Class InkInputProcessingConfiguration
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Remarks
Primary input is not from (or modified by) a secondary affordance, such as a pen barrel button, pen eraser tip, right mouse button, or similar.
Secondary input, by default, is processed as primary input and rendered as an InkStroke by the InkPresenter. For custom handling of secondary input by your application, set InkInputProcessingConfiguration.RightDragAction to LeaveUnprocessed. This indicates that input should be passed through the InkPresenter as UnprocessedInput for custom processing.
If InkInputProcessingConfiguration.Mode is set to None, the value of RightDragAction is ignored and input is always passed as UnprocessedInput through to your app for custom processing.
If InkInputProcessingConfiguration.Mode is set to Inking or Erasing, the value of RightDragAction must be set to LeaveUnprocessed to pass input as UnprocessedInput through to your app for custom processing.
To manage what secondary input is processed by your app, see InkInputConfiguration.
Properties
Mode |
Gets or sets how the InkPresenter object renders secondrary input from a pen barrel button, pen eraser tip, right mouse button, or similar on its associated InkCanvas control. By default, this secondary input is processed as primary input and rendered as an InkStroke (see remarks). |
RightDragAction |
Gets or sets how the InkPresenter object handles secondary input from a pen barrel button, pen eraser tip, right mouse button, or similar. By default, this secondary input is processed as primary input and rendered as an InkStroke (see remarks). |
Applies to
See also
- InputProcessingConfiguration
- 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