public void Remove() { if (ParentModel != null) { ParentModel.Remove(this); } else if (ParentViewModel != null) { ParentViewModel.Content = null; } }