3 instantiations of SymbolSpecificationViewModel
Microsoft.VisualStudio.LanguageServices.Implementation (3)
Options\Style\NamingPreferences\SymbolSpecification\ManageSymbolSpecificationsDialogViewModel.cs (3)
34Items = [.. specifications.Select(specification => new SymbolSpecificationViewModel( 51var viewModel = new SymbolSpecificationViewModel(LanguageName, canBeDeleted: true, notificationService: _notificationService); 67var viewModel = new SymbolSpecificationViewModel(LanguageName, symbolSpecification, symbolSpecificationViewModel.CanBeDeleted, _notificationService);
21 references to SymbolSpecificationViewModel
Microsoft.VisualStudio.LanguageServices.Implementation (21)
Options\Style\NamingPreferences\NamingStyleOptionPageViewModel.cs (1)
97var symbolSpecifications = viewModel.Items.Cast<SymbolSpecificationViewModel>().Select(n => new SymbolSpecification(
Options\Style\NamingPreferences\SymbolSpecification\ManageSymbolSpecificationsDialogViewModel.cs (5)
51var viewModel = new SymbolSpecificationViewModel(LanguageName, canBeDeleted: true, notificationService: _notificationService); 64var symbolSpecificationViewModel = (SymbolSpecificationViewModel)item; 66var symbolSpecification = ((SymbolSpecificationViewModel)item).GetSymbolSpecification(); 67var viewModel = new SymbolSpecificationViewModel(LanguageName, symbolSpecification, symbolSpecificationViewModel.CanBeDeleted, _notificationService);
Options\Style\NamingPreferences\SymbolSpecification\SymbolSpecificationDialog.xaml.cs (15)
21private readonly SymbolSpecificationViewModel _viewModel; 37internal SymbolSpecificationDialog(SymbolSpecificationViewModel viewModel) 50symbolKindsListView = CreateAutomationDelegatingListView(nameof(SymbolSpecificationViewModel.SymbolKindList)); 53accessibilitiesListView = CreateAutomationDelegatingListView(nameof(SymbolSpecificationViewModel.AccessibilityList)); 56modifiersListView = CreateAutomationDelegatingListView(nameof(SymbolSpecificationViewModel.ModifierList)); 76=> HandlePreviewKeyDown(e, symbolKindsListView.SelectedItems.OfType<SymbolSpecificationViewModel.SymbolKindViewModel>()); 79=> HandlePreviewKeyDown(e, accessibilitiesListView.SelectedItems.OfType<SymbolSpecificationViewModel.AccessibilityViewModel>()); 82=> HandlePreviewKeyDown(e, modifiersListView.SelectedItems.OfType<SymbolSpecificationViewModel.ModifierViewModel>()); 84private static void HandlePreviewKeyDown<T>(KeyEventArgs e, IEnumerable<T> selectedItems) where T : SymbolSpecificationViewModel.ISymbolSpecificationViewModelPart 100foreach (var item in symbolKindsListView.Items.OfType<SymbolSpecificationViewModel.SymbolKindViewModel>()) 108foreach (var item in symbolKindsListView.Items.OfType<SymbolSpecificationViewModel.SymbolKindViewModel>()) 116foreach (var item in accessibilitiesListView.Items.OfType<SymbolSpecificationViewModel.AccessibilityViewModel>()) 124foreach (var item in accessibilitiesListView.Items.OfType<SymbolSpecificationViewModel.AccessibilityViewModel>()) 132foreach (var item in modifiersListView.Items.OfType<SymbolSpecificationViewModel.ModifierViewModel>()) 140foreach (var item in modifiersListView.Items.OfType<SymbolSpecificationViewModel.ModifierViewModel>())