Пример #1
0
        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;
        }
Пример #2
0
 protected override void OnStylusDown(RawStylusInput rawStylusInput)
 {
     currentStroke = new StampedStroke();
     currentStroke.DownStylusPointStamp = DateTime.Now;
     base.OnStylusDown(rawStylusInput);
 }
Пример #3
0
 protected override void OnStylusDown(RawStylusInput rawStylusInput)
 {
     currentStroke = new StampedStroke();
     currentStroke.DownStylusPointStamp = DateTime.Now;
     base.OnStylusDown(rawStylusInput);
 }
Пример #4
0
        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;

        }