1 type derived from TargetMenuItemViewModel
Microsoft.VisualStudio.LanguageServices (1)
InheritanceMargin\MarginGlyph\DisambiguousTargetMenuItemViewModel.cs (1)
24internal class DisambiguousTargetMenuItemViewModel : TargetMenuItemViewModel
7 instantiations of TargetMenuItemViewModel
Microsoft.VisualStudio.LanguageServices (1)
InheritanceMargin\MarginGlyph\TargetMenuItemViewModel.cs (1)
37=> new(
Microsoft.VisualStudio.LanguageServices.UnitTests (6)
InheritanceMargin\InheritanceMarginViewModelTests.vb (6)
278Add(New TargetMenuItemViewModel("Bar2", KnownMonikers.ClassPublic, Nothing)).Add(New TargetMenuItemViewModel("Bar3", KnownMonikers.ClassPublic, Nothing)) 284Add(New TargetMenuItemViewModel("Bar1", KnownMonikers.ClassPublic, Nothing)). 286Add(New TargetMenuItemViewModel("Bar3", KnownMonikers.ClassPublic, Nothing)) 290Add(New TargetMenuItemViewModel("Bar1", KnownMonikers.ClassPublic, Nothing)). 291Add(New TargetMenuItemViewModel("Bar2", KnownMonikers.ClassPublic, Nothing))
31 references to TargetMenuItemViewModel
Microsoft.VisualStudio.LanguageServices (7)
InheritanceMargin\InheritanceMarginHelpers.cs (2)
189builder.Add(TargetMenuItemViewModel.Create( 195builder.Add(TargetMenuItemViewModel.Create(target, target.DisplayName));
InheritanceMargin\MarginGlyph\InheritanceMarginContextMenu.xaml.cs (2)
49if (e.OriginalSource is MenuItem { DataContext: TargetMenuItemViewModel viewModel }) 58private async Task TargetMenuItem_OnClickAsync(TargetMenuItemViewModel viewModel)
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (1)
167&& inheritanceMarginViewModel.MenuItemViewModels.Any(static vm => vm is TargetMenuItemViewModel))
InheritanceMargin\MarginGlyph\MenuItemContainerTemplateSelector.cs (1)
30if (item is TargetMenuItemViewModel)
InheritanceMargin\MarginGlyph\TargetMenuItemViewModel.cs (1)
36public static TargetMenuItemViewModel Create(InheritanceTargetItem target, string displayContent)
Microsoft.VisualStudio.LanguageServices.UnitTests (24)
InheritanceMargin\InheritanceMarginViewModelTests.vb (24)
173New MenuItemViewModelData("Bar", "Bar", KnownMonikers.ClassPublic, GetType(TargetMenuItemViewModel)))}, 180New MenuItemViewModelData("IBar", "IBar", KnownMonikers.InterfacePublic, GetType(TargetMenuItemViewModel)))}}) 207New MenuItemViewModelData("Bar", "Bar", KnownMonikers.ClassPublic, GetType(TargetMenuItemViewModel)))}, 214New MenuItemViewModelData("Bar.Foo", "Bar.Foo", KnownMonikers.MethodPublic, GetType(TargetMenuItemViewModel)))}, 221New MenuItemViewModelData("AbsBar", "AbsBar", KnownMonikers.ClassPublic, GetType(TargetMenuItemViewModel)))}, 228New MenuItemViewModelData("AbsBar.Foo", "AbsBar.Foo", KnownMonikers.MethodPublic, GetType(TargetMenuItemViewModel)))}}) 248New MenuItemViewModelData("IBar2", "IBar2", KnownMonikers.InterfacePublic, GetType(TargetMenuItemViewModel)), 249New MenuItemViewModelData("IBar3", "IBar3", KnownMonikers.InterfacePublic, GetType(TargetMenuItemViewModel)))}, 256New MenuItemViewModelData("IBar1", "IBar1", KnownMonikers.InterfacePublic, GetType(TargetMenuItemViewModel)), 258New MenuItemViewModelData("IBar3", "IBar3", KnownMonikers.InterfacePublic, GetType(TargetMenuItemViewModel)))}, 265New MenuItemViewModelData("IBar1", "IBar1", KnownMonikers.InterfacePublic, GetType(TargetMenuItemViewModel)), 266New MenuItemViewModelData("IBar2", "IBar2", KnownMonikers.InterfacePublic, GetType(TargetMenuItemViewModel)))}}) 300New MenuItemViewModelData("Bar2", "Bar2", KnownMonikers.ClassPublic, GetType(TargetMenuItemViewModel)), 301New MenuItemViewModelData("Bar3", "Bar3", KnownMonikers.ClassPublic, GetType(TargetMenuItemViewModel)))}, 308New MenuItemViewModelData("Bar1", "Bar1", KnownMonikers.ClassPublic, GetType(TargetMenuItemViewModel)), 310New MenuItemViewModelData("Bar3", "Bar3", KnownMonikers.ClassPublic, GetType(TargetMenuItemViewModel)))}, 317New MenuItemViewModelData("Bar1", "Bar1", KnownMonikers.ClassPublic, GetType(TargetMenuItemViewModel)), 318New MenuItemViewModelData("Bar2", "Bar2", KnownMonikers.ClassPublic, GetType(TargetMenuItemViewModel)))}}) 347New MenuItemViewModelData("BarSample", "BarSample", KnownMonikers.ClassPublic, GetType(TargetMenuItemViewModel)))}, 355New MenuItemViewModelData("BarSample.e1", "BarSample.e1", KnownMonikers.EventPublic, GetType(TargetMenuItemViewModel))), 358New MenuItemViewModelData("BarSample.e2", "BarSample.e2", KnownMonikers.EventPublic, GetType(TargetMenuItemViewModel))))}, 365New MenuItemViewModelData("IBar1", "IBar1", KnownMonikers.InterfaceInternal, GetType(TargetMenuItemViewModel)))}, 373New MenuItemViewModelData("IBar1.e1", "IBar1.e1", KnownMonikers.EventPublic, GetType(TargetMenuItemViewModel))), 376New MenuItemViewModelData("IBar1.e2", "IBar1.e2", KnownMonikers.EventPublic, GetType(TargetMenuItemViewModel))))}})