Nevron Open Vision Documentation
Library Browser
About Library Browser

The library browser is represented by the NLibraryBrowser class. It is a widget which is designed to display the content of multiple libraries.

To do that it aggregates a NLibraryNavigationBar (which is a customized Navigation Bar), the panes of which are NLibraryPane instances (derived from NNavigationBarPane class). The navigation bar of a library browser is exposed by the NavigationBar property. The content of each library pane is an instance of the NLibraryView class (see Library View and Library Document for more information).

Library Panes

As mentioned, the library navigation bar is populated with panes that derive from the NLibraryPane base abstract class.

Essentially the base library pane class provides the library browser with the ability to load on-demand the library view that is contained inside the pane by calling the EnsureContentLoaded() abstract method. In this way library panes that can load their content on-demand, are only doing so when they are displayed inside the library browser. This increases the performance of the library browser when it has to manage many library views.

Currently there are two subtypes of the library panes:

 

Library Browser Toolbar

The library browser has a toolbar that provides the user with commands that help him manage the libraries displayed by the library navigation bar. This toolbar is accessible from the ToolBar property of the NLibraryBrowser and has the following commands: 

Commands that manage the displayed libraries

Commands that control the libraries view type

Commands that control the libraries display order

 

Libraries View Type 

The library browser controls the ViewType of all libraries displayed by it via the LibraryViewType property. Internally the browser sets the ViewType property of the currently selected library to the value specified by the LibraryViewType property. The following code example switches all libraries to Thumbnails view:

Changing the library view type
Copy Code
libraryBrowser.LibraryViewType = ENLibraryViewType.Thumbnails;
By default libraries are displayed in Icons view.
Libraries Display Order

The library browser controls the DisplayOrder of all libraries displayed by it via the LibraryDisplayOrder property. Internally the browser sets the DisplayOrder property of the currently selected library to the value specified by the LibraryDisplayOrder property. The following code example switches all libraries to NameAscending display order:

Changing the library display order
Copy Code
libraryBrowser.LibraryDisplayOrder = ENLibraryDisplayOrder.NameAscending;
Send Feedback