protected void Register() { if (View != null) { return; } View = ViewModelBinder.GetView(this); View.DataContext = this; View.ViewModel = this; View.Closing += ViewOnClosing; ViewModelManager.Register(this); }