Removing NPageNavigator from NDrawingView


https://www.nevron.com/Forum/Topic12043.aspx
Print Topic | Close Window

By Raquel Hayner - 7 Years Ago
I can do the following to hide the page navigator from a drawing view:

m_DrawingView.PageNavigator.Visibility = ENVisibility.Hidden;


However, it still leaves the big space at the bottom empty. How can I hide the page navigator and hide that space away?
By Nevron Support - 7 Years Ago
Hi,

Setting the visibility of a widget to Hidden, only makes it invisible, but it still occupies a given area in its container. To both hide the widget and free (collapse) the area it occupies, you should set it visibility to Collapsed:

m_DrawingView.PageNavigator.Visibility = ENVisibility.Collapsed;