Diagram / Diagram DOM / Drawings / Pages / Page Navigator
In This Topic

    Page Navigator

    In This Topic

    The NOV Diagram page navigator is a widget placed in the bottom-left corner of the drawing view and lets the user quickly switch between the pages of the drawing, add, duplicate, delete, rename and edit the properties of pages.

     Hiding Buttons and Context Menu Items

    The following properties of the page navigator control which actions are allowed:

    • AllowAdd - specifies whether adding and duplicating pages is allowed. When set to false, both the "Add" button and the "Duplicate" context menu item are hidden.
    • AllowDelete - specifies whether deleting pages is allowed. When set to false, the "Delete" context menu item is hidden.
    • AllowRename - specifies whether renaming pages is allowed. When set to false, the "Rename" context menu item is hidden.
    • AllowPagePropertiesChange - specifies whether editing of page properties is allowed. When set to false, the "Page Properties" context menu item is hidden.

    If you disable all actions, both the "Add" button and the page context menu of the page navigator will be hidden:

    Hide the Add button and the page context menu
    Copy Code
    drawingView.PageNavigator.AllowAdd = false;
    drawingView.PageNavigator.AllowDelete = false;
    drawingView.PageNavigator.AllowRename = false;
    drawingView.PageNavigator.AllowPagePropertiesChange = false;
    
     Hiding the Whole Page Navigator

    To hide the whole page navigator, use the following code:

    Hide the page navigator completely
    Copy Code
    drawingView.PageNavigator.Visibility = ENVisibility.Collapsed;
    
    See Also