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

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