void _contentWindow_ContentRendered(object sender, EventArgs e)
{
_resizeGrip = _contentWindow.FindChildInVisualTree<ResizeGrip>();
// hack to make sure the border is shown after content is shown
_contentShown = true;
if (_borderWindow != null)
_borderWindow.RepositionToContent(new WindowInteropHelper(_contentWindow).Handle, _hideOverride);
}