0

I have seen that Outlook has a quick access toolbar (QAT).

You can access it doing below:

enter image description here

And then the QAT appears (see below screenshot, I marked it with a blue rectangle): enter image description here

So taken into account that a custom task pane (ctp) have some limitations, for example, you cannot remove title bar nor buttons I was thinking about if it is possible to create a QAT programmatically and embed into it an WPF user control.

Is it possible?

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
Willy
  • 9,848
  • 22
  • 141
  • 284

1 Answers1

1

No, it is not possible. At least there is no trivial way of getting the job done without Windows API functions involved.

The QAT (Quick Access Toolbar) has a predefined set of controls that can be put inside it. Read more about the Fluent UI (aka Ribbon UI) in the following series of articles:

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
  • I am not referring to customize the ribbon. The links you provided if about customizing the ribbon. I do not want that. Under the ribbon there is a quick access toolbar that you can show or hide through the menu. See my screenshots.. What I would like to do is create a custom quick access toolbar (QAT) and embed there an elementhost which in turn embeds a WPF user control. – Willy Oct 26 '22 at 23:00
  • Understood. The first sentences in my post give the answer to that question. – Eugene Astafiev Oct 26 '22 at 23:05
  • I supposed that. Customizing Outlook UI and/or create new toolbars is practically imposible, it almost always requires a hack using Windows API functions or hooks when you want to do things a little bit more complicated. Anyway I never undersand why Microsoft can do that (even toolbars without titlebars and buttons, for example yellow toolbars which appears showing information such as add-in disabled, etc.) but they don't allow to do it throught the API. – Willy Oct 26 '22 at 23:21