I have a content pane on which i have a theme applied, the content pane can be docked anywhere on the screen and can make it as a floating window.
When i am making my content pane a floating windows, the theme gets lost.
I wanted my theme to remain when the content pane acts as a floating window or is there any alternative to set my personal theme only while content pane is floating
Regards,
Sachin Deoli
Hello Sachin,
Thank you for contacting. May I know how did you apply the theme and which part of the floating window you think dosent have theme applied? Or may be share a image with us.
Please note , when you float the pane and if you mean that specific theme is not applied ,instead you see the OS theme applied then its expected , to have your application specific theme apply to your floating window you can hook the ToolWindowLoaded event and set the e.Window.UseOSNonClientArea to false.
Let me know if you have any question and if your issue is different.
Hello Divya Jain
I have tried e.Window.UseOSNonClientArea to false it changes my floating window style from picture 1 to picture 2
picture1-:
picture2-:
How can i set my own theme on the floating window?
Kind Regards,
Thank you for the update. Ok so you are not using the default styles ,instead resource washer.
Note Styles/resourcewasher/etc in the xamdockmanager's resources or even in the resources of the window containing the xamdockmanager will not affect the floating windows since they are separate top level windows.
Try coping your styles/resourcewashers into the app.xaml, this should help.
You can also refer to this post ,discussing the same issue.
https://es.infragistics.com/community/forums/f/ultimate-ui-for-wpf/121470/resourcewasher-doesn-t-work-with-xamdockmanager-floating-panes
Hello Divya,
XamDockManagerCloseBtnCase.zip
Than you for sharing the sample. It was supper easy to find the cause of the issue .
So you needed to include PrimitivesIGThemein the ResourceWasher Dictionary for the floating window.
So your complete code in the app.xaml would be:
<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="HideCloseBtnDictionary.xaml"/> <igWPF:ResourceWasher WashMode="HueSaturationReplacement" WashColor="Black"> <igWPF:ResourceWasher.SourceDictionary> <igThemes:DockManagerIGTheme /> </igWPF:ResourceWasher.SourceDictionary> </igWPF:ResourceWasher> <igWPF:ResourceWasher WashMode="HueSaturationReplacement" WashColor="Black"> <igWPF:ResourceWasher.SourceDictionary> <igThemes:PrimitivesIGTheme /> </igWPF:ResourceWasher.SourceDictionary> </igWPF:ResourceWasher> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Application.Resources>
Let me know if you have any question.
Any update On this issue?
Hello,
As I explained floating window is seprate from the main window and its elements are not in the direct visual tree of dockmanager and that is why the style you apply has to be in the app.xaml.
In your real time application you should have app.xaml file . I don’t see any other way to apply style for floating window.
Hello Sachine,
I am not sure about your requirement, because if you remove the border then how you gonna drag or close the floating window?
I believe you or your teammate created another post to discuss this new requirement at :
https://es.infragistics.com/community/forums/f/ultimate-ui-for-wpf/124138/how-to-hide-title-bar-of-floating-tool-user-control
its good to create new support post for a new requirement, its better organize the response and for others members to follow the solution for a requirement.
You can follow that thread to discuss this new requirement.
Divya Jain
Any Update on my new requirements ?
Is there any way to Completely remove the border of the floating content pane
I don't require the border now all i need is the content inside the border
My requirement is from picture1 to picture2(only when the content pane is floating)
Pic1-:
Pic2-: