private void CreateStroke()
        {
            currentStampedStrokeIndex++;
            currentStampedStroke = stampedStrokes[currentStampedStrokeIndex].Item2;

            var stylusPoints = new StylusPointCollection();

            AddStampedStylusPoint(stylusPoints, currentStampedStroke.StampedStylusPoints[0]);
            currentStroke = new Stroke(stylusPoints);
            inkCanvas.Strokes.Add(currentStroke);
            currentPointIndex = 1;
        }
 protected override void OnStylusDown(RawStylusInput rawStylusInput)
 {
     currentStroke = new StampedStroke();
     currentStroke.DownStylusPointStamp = DateTime.Now;
     base.OnStylusDown(rawStylusInput);
 }
Exemple #3
0
 protected override void OnStylusDown(RawStylusInput rawStylusInput)
 {
     currentStroke = new StampedStroke();
     currentStroke.DownStylusPointStamp = DateTime.Now;
     base.OnStylusDown(rawStylusInput);
 }
        private void CreateStroke()
        {
            currentStampedStrokeIndex++;
            currentStampedStroke = stampedStrokes[currentStampedStrokeIndex].Item2;
            
            var stylusPoints = new StylusPointCollection();
            AddStampedStylusPoint(stylusPoints, currentStampedStroke.StampedStylusPoints[0]);
            currentStroke = new Stroke(stylusPoints);
            inkCanvas.Strokes.Add(currentStroke);
            currentPointIndex = 1;

        }