I have experience with WinForms and frequently used the _Paint event for drawing. While exploring WPF, I came across the OnRender method and heard that it might be the equivalent for custom drawing in WPF.
I would like to confirm if the OnRender method is indeed the real equivalent to the _Paint event in WinForms for drawing in WPF. Additionally, I'm would like to know if using the OnRender method is the most efficient way to perform custom drawing in terms of rendering speed and performance.