Skip to main content

How to Use the Office Search Box with a Ribbon or Toolbar UI

This topic describes how to integrate the Office Search Box control into an application with a Ribbon UI. User can enter a command’s name in this search field and choose the matching element from its drop-down menu.

Once you complete the steps below, end-users can enter in command names to find and use the Ribbon UI functionality.

In this tutorial, we use an ExpressPDFViewer-based application with an automatically generated Ribbon UI.

Place the dxBarManager1 and dxRibbon1 components onto the form before you add the search box. The control detects the components and assigns them to the Properties.BarManager and Properties.Ribbon properties. Otherwise, you must assign a bar manager and ribbon to the corresponding properties.

Specify the search source (that is, assign the Ribbon control or the Bar Manager component to the Properties.SearchSource property) to enable the search box’s functionality.

Now you can run your project to test the search box.

See Also