Search box in Ribbon title bar

Ribbon for WPF Forum

Posted 2 years ago by Ed
Version: 20.1.0
Avatar

Microsoft Word and Outlook have a search box in the title bar:

[Picture of Word and Outlook Title bar]

Is there a better way of replicating this functionality than adding a custom control to the QuickAccessToolbar (QAT)? It would be great if a search box could be centralised to improve user visibility and accessability.

Edit:

This appears to do what I need

<ribbon:RibbonWindow.TitleBarHeaderTemplate>

[Modified 2 years ago]

Comments (1)

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Ed,

Our WindowChrome allows you to inject custom UI elements into the title bar.  You can see several examples of that in our Themes section of the Sample Browser, and it's described here in our documentation.

RibbonWindow uses our powerful WindowChrome behind the scenes.  I believe you can call WindowChrome.GetChrome(this) in the window's constructor after InitializeComponent to get the WindowChrome instance in use, and then set its properties appropriately for updating the title bar content, such as the TitleBarHeaderTemplate property you found.  We use the left title bar area to render the QAT using that mechanism.


Actipro Software Support

The latest build of this product (v24.1.2) was released 1 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.