public static DialogResult Show(string Text, string Caption, Window parent) { MsgBoxOKCancel = new CustomOKCancelMessageBox(parent); MsgBoxOKCancel.btnConfirmar.Focus(); MsgBoxOKCancel.Height = parent.ActualHeight; MsgBoxOKCancel.Width = parent.ActualWidth; MsgBoxOKCancel.txtDescricao.Text = Text; MsgBoxOKCancel.txtTitulo.Text = Caption; MsgBoxOKCancel.ShowDialog(); MsgBoxOKCancel.Owner = parent; return(result); }