Example #1
0
 protected virtual void OnStrokeRendered(StrokeRenderedEventArgs e)
 {
     if (StrokeRendered != null)
     {
         StrokeRendered(this, e);
     }
 }
Example #2
0
        void filterPlugin1_StrokeRendered(object sender, StrokeRenderedEventArgs e)
        {
            //MessageBox.Show("stroke rendered");
            Stroke newStroke = new Stroke(e.StrokePoints, currentAttributes);

            inkPresenter1.Strokes.Add(newStroke);
        }
Example #3
0
        // This is called on the application thread.
        protected override void OnStylusUpProcessed(object callbackData, bool targetVerified)
        {
            // Check that the element actually receive the OnStylusUp input.
            if (targetVerified)
            {
                StylusPointCollection strokePoints = callbackData as StylusPointCollection;

                if (strokePoints == null)
                {
                    return;
                }

                // Raise the StrokeRendered event so the consumer of the plugin can
                // add the filtered stroke to its StrokeCollection.
                StrokeRenderedEventArgs e = new StrokeRenderedEventArgs(strokePoints);
                OnStrokeRendered(e);
            }
        }