private void OnDrawingAttributesReplaced(Object sender, DrawingAttributesReplacedEventArgs args) { // If the drawing attributes change involves Width, Height, StylusTipTransform, IgnorePressure, or FitToCurve, // we need to invalidate if (false == DrawingAttributes.GeometricallyEqual(args.NewDrawingAttributes, args.PreviousDrawingAttributes)) { Invalidate(); } }