0

I have an VSTO Outlook Add-in. I have put a custom task pane at the top. This custom task pane contains an WPF user control.Now I am trying to change the background color of the header (title bar) and borders of the custom task pane (I am not referring to the background of the WPF user control). Is it possible? If so how?

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

1 Answers1

1

No, it is not. The Office extensibility model doesn't provide anything for that out of the box. You may try using the Windows API functions for that, at lease you can inject your own form. Such forms MS calls Adjucent Outlook windows. Note, you need to have a deep understanding of Windows API to move that way, see SetWindowsHookEx.

Also you may take a look at Add-in Express based form regions and views, see How to add a custom header to your Outlook form or task pane: C# and VB.NET for more information.

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
  • I have no experience in Windows API using hooks but I guess this is not easy. Do you have some example on how to do it? Regarding Add-in Express I don't want to establish a dependency on third-parties and it is not free ;) I am trying to remove the title bar from the custom task pane, so as It can be done I was thinking on changing the color to be the same as my user control or even make background transparent. This is the reason of this post. Thanks for your support again. – Willy Oct 16 '22 at 21:04