public void Dispose() { if (this.picker != null) { this.picker.PropertyChanged -= this.Picker_PropertyChanged; this.picker.Dispose(); } if (this.viewModel != null) { this.viewModel.AuthenticationChanged -= this.ViewModel_AuthenticationChanged; } }