InkModelerAttributes.PredictionTime Property

Definition

Gets or sets the amount of time into the future used to predict the expected location of the input pointer.

public:
 property TimeSpan PredictionTime { TimeSpan get(); void set(TimeSpan value); };
TimeSpan PredictionTime();

void PredictionTime(TimeSpan value);
public System.TimeSpan PredictionTime { get; set; }
var timeSpan = inkModelerAttributes.predictionTime;
inkModelerAttributes.predictionTime = timeSpan;
Public Property PredictionTime As TimeSpan

Property Value

The time in milliseconds. The default is 15 ms, with a valid range between 0 to 20 ms.

The InkPresenter attempts to use 15ms when conditions are most favorable. When conditions are less favorable, such as a period of high acceleration, some fraction of that time is used.

Remarks

When using the InkToolbar, InkModelerAttributes should be set in the InkToolbar.ActiveToolChanged event as attributes are overwritten whenever the active tool is changed.

Applies to

See also