public void DeselectAll() { ISelectionService _selectionSrv = ServiceLocator.Current.GetInstance <SelectionServiceProvider>(); _selectionSrv.RemoveAllWidgets(); foreach (BaseWidgetItem item in this.SelectedItems) { item.IsSelected = false; } IGroupOperation pageVM = DataContext as IGroupOperation; pageVM.DeselectAllGroups(); }