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,
So if picture2 is not your expected image then would like to know which theme did you apply to the pane?
And how did you apply?
Can I also have picture of before floating window ?
Hi Divya
I have created my own theme for XamDockManager-:
<ResourceDictionary xmlns="">schemas.microsoft.com/.../presentation"
xmlns:x="">schemas.microsoft.com/.../xaml"
xmlns:igThemes="">infragistics.com/Themes">
<ResourceDictionary.MergedDictionaries>
<igThemes:DockManagerIGTheme />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
Which i have used on my code like-:
<igWPF:ResourceWasher WashMode="HueSaturationReplacement" WashColor="#FF6D6D6D">
<igWPF:ResourceWasher.SourceDictionary>
<ResourceDictionary Source="/NewFolder/Themes/IG/IG.xamDockManager.xaml" />
</igWPF:ResourceWasher.SourceDictionary>
</igWPF:ResourceWasher>
This is how my content pane looks like when its docked(Not Floating)-:
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 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 ?
Hello Divya,
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-:
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.
Any update On this issue?