Tuesday, February 28, 2017

Center WPF window in Win32 window

I needed to add a new WPF window, while developing Visual Studio Package. And it would be good for it to be centered in parent.
I've found an old msdn blog post that was supposed help in this. However it is not ideal and has some missing things. Let's fix that.