GEMR: Get the parent window for view
Window window = Utilities.GetVisualParent<Window>(this);
if (window != null)
{
window.DialogResult = true;
}