File: InheritanceMargin\MarginGlyph\MenuItemViewModel.cs
Web Access
Project: src\src\VisualStudio\Core\Def\Microsoft.VisualStudio.LanguageServices_4r0c5m1y_wpftmp.csproj (Microsoft.VisualStudio.LanguageServices)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
using Microsoft.VisualStudio.Imaging.Interop;
 
namespace Microsoft.VisualStudio.LanguageServices.Implementation.InheritanceMargin.MarginGlyph;
 
internal abstract class MenuItemViewModel
{
    /// <summary>
    /// Display content for the target.
    /// </summary>
    public string DisplayContent { get; }
 
    /// <summary>
    /// ImageMoniker shown in the menu.
    /// </summary>
    public ImageMoniker ImageMoniker { get; }
 
    /// <summary>
    /// AutomationName for the MenuItem.
    /// </summary>
    public string AutomationName { get; }
 
    protected MenuItemViewModel(string displayContent, ImageMoniker imageMoniker)
    {
        ImageMoniker = imageMoniker;
        DisplayContent = displayContent;
        AutomationName = displayContent;
    }
}