InkDrawingAttributes.ModelerAttributes Property

Definition

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