Adding items to the RibbonWindow title bar

Ribbon for WPF Forum

Posted 5 years ago by Scott Currie
Version: 14.1.0602
Avatar

I'd like to add a couple of dropdown menus to the title bar (just to the left of the minimize button).  Essentially, I want to do something very similar to what VS 2013 does with messages,notifications, and Quick Launch.

What is the easiest way to do this to RibbonWindow?  Do I need to override the top-level Actipro style, or is there a more targeted way to do that?

Comments (1)

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

Hi Scott,

RibbonWindow has a pre-built WindowChrome instance that it uses to do its chrome rendering.  You can get that instance in code by doing "var chrome = WindowChrome.GetChrome(this)" in the window.  The chrome has a TitleBarContentTemplate property that you can set to a DataTemplate and that will show up next to the title bar buttons.  Please note that you can't set the WindowChrome instance in pure XAML since that wouldn't allow you to get the already-defined instance.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.