WPF: Improved wave form drawing performance massively by properly freezing resources before they were being used (even though the pen was created in advance and not recreated for every line drawn). For that IGraphicsContext is now using a SetPen method instead of SetLineWidth/SetStrokeColor to make it easier to freeze the pen for future use. Finally, the performance is almost as good as the previous Windows Forms control.