Hi, Guys!
Is it possible to add an extra button into ToolWindow title bar?
I've created a style and I can see my extra button in Visual Studio designer, but I can't see it in runtime:
https://prnt.sc/ijwz5m
Here is my example:
0184.WpfApplication21.zip
Could you point me what's wrong with it, please?
Thank you.
Hello Zonder,
Thank you for contacting Infragistics!
You can achieve this by setting “UseOSNonClientArea” to false on loaded of the window:
private void ToolWindow_Loaded(object sender, RoutedEventArgs e) { ((Infragistics.Windows.Controls.ToolWindow)sender).UseOSNonClientArea = false; }
Hello, Mike!
Thank you for the answer.Yes, I've tried UseOSNonClientArea property. But regular buttons are disappear (Close, Maximize, Minimize).
I just need to have a regular tool window with Close button and my custom button in the title.
Best Regards,
Zonder
Thank you for the update. I have been able to reproduce the behavior you describe. It appears to be related to the styles. I am investigating this matter further and will update you with my progress.
Hello Mike!
Thank you for the answer!
I'll try to setup all resources
Thank you for your patience. I have done some further looking into this matter. And when you are not adjusting UseOSNonClientArea it isn’t looking at your dynamic resource ToolWindowStyle1. When you set that to false it is not finding any brushes for your resource. You have to setup those brushes.