public ShellViewModel() { var connectVM = new ConnectViewModel(); connectVM.PropertyChanged += ConnectVM_PropertyChanged; this.ShowDialog(connectVM, 400, 170); }