[WPF] Fixed pattern rendering issues