protected override void OnClosed(EventArgs e)
        {
            base.OnClosed(e);

            //unregister messages
            CasualMessenger.Instance.Messenger.Unregister(ViewModel);
            CasualMessenger.Instance.Messenger.Unregister(this);

            ViewModel = null;
        }
 protected override void OnClosed(EventArgs e)
 {
     ViewModel = null;
     base.OnClosed(e);
 }