public MainViewModel() { this.AddAttachementCommand = new RelayCommand(AddAttachement); this.AddWrapperCommand = new RelayCommand(AddWrapper); this.RemoveAttachementCommand = new RelayCommand <string>(RemoveAttachement); this.LogoutCommand = new RelayCommand(Logout); this.LoginCommand = new RelayCommand(Login); this._attachements = new ObservableCollection <Attachement>(); var beginGetUserResult = _authCreds.BeginGetUser(); this.LoggedInUser = _authCreds.EndGetUser(beginGetUserResult); Attachements.CollectionChanged += (sender, e) => RaisePropertyChanged(nameof(Attachements)); }