Current Tool Window always showing in Windows XP style.
Can you show me how to styling a Tool Window to default style of Windows OS (Ex: windows 10).
I am setting Themes to "LunaNormal"
Hello Cao,
You could try hooking the ToolWindowLoaded and set the ‘UseOSNonClientArea’ property, which is use to set indicating whether the content should use the operating system.
Something like this:
private void mainDockManager_ToolWindowLoaded(object sender, Infragistics.Windows.DockManager.Events.PaneToolWindowEventArgs e) { e.Window.UseOSNonClientArea = false;
}
Let me know if this helped.
Hi Divya Jain,
Thank you for your support and answer.
I would like to confirm again.
1- If I keep the settings XamDockManager.Theme= "LunaNormal" and set e.Window.UseOSNonClientArea = false; then ToolWindow style is still XP style. When ignore Theme setting, the style of ToolWindow is changed. Is that true?
2- When ignore Theme setting, the style of ToolWindow is changed same as below image but I want that style same Main Window. Could you show me how to change style ToolWindow (Floating) same as standard WPF window (MainWindow) ?
Hello,
The ToolWindow style is still XP style because ‘LunaNormal’ theme is for window XP blue.Here is the list of all the theme.
If you set any other theme and set UseOSNonClientArea to false , theme settings would be owner.
Regarding to changing the style of floating pane or customize it ,you can have a look at this post : www.infragistics.com/.../customizing-xamdockmanager-s-floating-panes
-Regards
Hello Divya Jain,
Set UseOSNonClientArea to true then the result is my expected. Floating window style matched to the OS style.
Thank you for your supported.
Thank you for all your comments and solutions. I will try it and confirm again.
I read your requirement again and understand that you want your window to match the OS style. If so, then to do that one would be setting the UseOSNonClientArea to true – i.e. indicating you want the OS to render the non-client area.
It should be noted that still it may not match the look of your main window. Our floating windows use with the SingleBorderWindow WindowStyle if it allows minimize and/or maximize and otherwise use the ToolWindow ‘WindowStyle’(WindowStyle.SingleBorderWindow).