Diagram / Commanding / Command Bars / Diagram Command Bars Designer
In This Topic
    Diagram Command Bars Designer
    In This Topic

    If you are using the Visual Studio designer, you can click the Customize Command Bars smart tag of your NDrawingViewWithCommandBarsControl and uncheck the menus, toolbars and commands you want to hide from the command bars UI.

    The tree view with the commands typically contains 3 levels of items:

    1. The first level contains the command bars - menu bars, toolbars, status bars. The menu bars have a prefix Menu and the toolbars have a prefix Toolbar. If you uncheck a menu bar, a toolbar or a status bar, it will be hidden from the command bars UI.
    2. The second level contains the menu drop downs of the menu bars (e.g. "File", "Edit", "View", etc.) and the commands of the toolbars. Uncheck any of them to hide them from the command bars UI.
    3. The third level contains the menu items of the menu drop downs like "File -> Open", "Insert -> Image", etc. Uncheck any of them to hide them from the command bars UI. There can also be a 4-th level that contains the sub menu items of the menu items.

    When you uncheck the command bar items you want to hide, click the OK button from the dialog and the changes will be applied to the command bars UI.

    The smart tags are only available for .NET Framework (4.8 and older) WinForms and WPF projects. If your project is targeting .NET 5.0 or later, smart tags will not be available in the designer. Refer to the Diagram Command Bars via Code topic for information on how to customize the command bars programmatically.
    See Also