[WPF] Fix canvas sizing issue