private void OnClearModels() { List <IModel> hiddenModels = Models.Where(model => !model.Visible).ToList(); _models.ExecuteWithoutNotification(models => { models.Clear(); hiddenModels.ForEach(models.Add); }); RaisePropertyChanged(() => Models); RaisePropertyChanged(() => Models3D); }