Thank you for figuring this out.
I used a workaround described
here.
Not the best solution, but it works.
I inherited this project a few weeks ago, so I can't tell you which template was used.
Finally I now live with this workaround and successive migrate the WPF parts to another project.
Thanks again :)