[WPF] Fix canvas rendering issue