protected virtual void OnHitChangePoints(HitChangePointsEventArgs e) { EventHandler <HitChangePointsEventArgs> handler = HitChangePointsEvent; if (handler != null) { handler(this, e); } }
protected override void OnStylusUp(RawStylusInput rawStylusInput) { base.OnStylusUp(rawStylusInput); //raise the event and pass the collection HitChangePointsEventArgs args = new HitChangePointsEventArgs(); args.hitChangedPoints = hitChangedPoints; OnHitChangePoints(args); //reset the collection hitChangedPoints = new List <Point>(); }