Search box in Ribbon title bar

Ribbon for WPF Forum

Posted 7 months 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 7 months ago]

Comments (1)

Posted 7 months 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 (v22.1.3) was released 20 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.