Hi,
I have an application that has a mixture of Panels defined in XAML as well as a number that I dynamically add on demand.
My problem is that when I only use the statically defined Panels the application starts and on drag/undock the correct styling is applied to the floating panels. When I dynaamically create panels during startup the styles are no longer used when the panel floats.
I am sure that I am missing some "magic" code here to set the styles (although I wonder why default styles are not automatically used in this case).
My styles define a custom chrome for the floating windows and use UseOsNonClientArea=false to achieve this.
Does anything spring to mind out there?
Regards,
Graham
There should be no difference between defining the panes in xaml or in code. One thing that you should be aware of that will affect the floating panes either way is that the panes that are floating are in a separate WPF Window and therefore they are not part of the logical tree of the xamDockManager and therefore they will not be affected by any implicit styles defined within the xamDockManager or its containing Window. They would only be affected by resources defined in the application's resources or styles from the Theme that is set or things that you explicitly put into the Resources of the ToolWindow (e.g. in the ToolWindowLoaded event).
Hi,We do face the same problem as raised above. As the user drags a pane by making it floating, the styles applied vanish and the pane gets the default style.
Could anyone please point of what might be missing?
Many ThanksAmir