public CustomInkCanvas() : base()
        {
            // Use the custom dynamic renderer on the
            // custom InkCanvas.
            CustomDynamicRenderer customRenderer = new CustomDynamicRenderer();

            DynamicRenderer        = customRenderer;
            customRenderer.onDraw += new CustomDynamicRenderer.OnDrawStylusPoint(StylusPointDraw);
        }
 private void StylusPointDraw(CustomDynamicRenderer c, StylusPointCollection stylusPoints)
 {
     onStylusDraw?.Invoke(this, stylusPoints);
 }