InkDrawingAttributes.ModelerAttributes 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 an instance of a ModelerAttributes object for accessing modeler properties of an ink stroke.
public:
property InkModelerAttributes ^ ModelerAttributes { InkModelerAttributes ^ get(); };
InkModelerAttributes ModelerAttributes();
public InkModelerAttributes ModelerAttributes { get; }
var inkModelerAttributes = inkDrawingAttributes.modelerAttributes;
Public ReadOnly Property ModelerAttributes As InkModelerAttributes
Property Value
A ModelerAttributes object used to process ink stroke rendering properties.
Windows requirements
Device family |
Windows 10, version 1803 (introduced in 10.0.17134.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v6.0)
|
Examples
Here, we show how increasing latency when rendering ink strokes can be used to reduce possible stroke correction artifacts due to incorrect prediction. This example reduces the default forward-looking prediction time from 15ms to 8ms.
public sealed partial class AdjustPrediction : Page
{
public AdjustPrediction()
{
this.InitializeComponent();
var inkPresenter = inkCanvas.InkPresenter;
InkDrawingAttributes drawingAttributes =
inkPresenter.CopyDefaultDrawingAttributes();
InkModelingAttributes modelingAttributes = drawingAttributes.ModelingAttributes;
modelingAttributes.PredictionTime = TimeSpan.FromMilliseconds(8);
inkPresenter.UpdateDefaultDrawingAttributes(drawingAttributes);
}
}
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