this solution is very nice.
But I found two problems:
1. When I opened sample project in in-browser mode with zoom , than Overlay size is bad transformed.
double zoomFactor = Application.Current.Host.Content.ZoomFactor;
if (zoomFactor != 0)
this.Height /= zoomFactor;// ?? (this.Height *= zoomFactor;)
this.Width /= zoomFactor;// ?? (this.Width *= zoomFactor;)
2. When I opened sample project in in-browser mode with size 1024*768 and resize ie window than overlay size don't changes.
Sorry, my english is very bad.