Hi i'm currently redesigning an old project and trying to upgrade it to a multiwindow applicaiton with your XamDockManager.
So i'm experiment currently with the DockManager, what i have is
<igDock:XamDockManager> <igDock:DocumentContentHost> <igDock:SplitPane> <igDock:TabGroupPane> <igDock:ContentPane></igDock:ContentPane> </igDock:TabGroupPane> </igDock:SplitPane> </igDock:DocumentContentHost> <igDock:XamDockManager.Panes> <igDock:SplitPane igDock:XamDockManager.InitialLocation="DockedRight"> <igDock:TabGroupPane> <igDock:ContentPane></igDock:ContentPane> </igDock:TabGroupPane> </igDock:SplitPane> </igDock:XamDockManager.Panes> </igDock:XamDockManager>
with the AddDocument(); method i'm currently adding some UserControls for test purposes. So when im dragging these out and want to dock them to the windows surface this isn't working. Is there a trick to get it working ? Or isn't the XamDockManager supporting this ? Or do I have to use other control types than UserControl ? wheres my mistake ? :) best regards Mark
with the AddDocument(); method i'm currently adding some UserControls for test purposes.
So when im dragging these out and want to dock them to the windows surface this isn't working.
Is there a trick to get it working ? Or isn't the XamDockManager supporting this ?
Or do I have to use other control types than UserControl ?
wheres my mistake ? :)
best regards
Mark
The Windows 7 snap functionality only works when the OS is dragging the window. By default that doesn't happen when using xamDockManager. Using 11.1 or later one could set the FloatingWindowDragMode to UseSystemWindowDrag. Note there are some limitations when using this so you may want to check the help.
I've checked the help and the limitations seems ok for me ;) so i've set the
FloatingWindowDragMode="UseSystemWindowDrag"
in my Dockmanager, but my added Documents are still not dockable.
Then perhaps I'm misunderstanding your original question. I thought you wanted to use the Windows 7 snap feature that allows a window to dock to the left/right edge of the screen. If that's not what you mean then perhaps you can provide more information or a functional sample with steps. What "windows surface" are you referring to? Panes can only be made floating or docked within the xamDockManager from which they came.
So after reading your post. The Windows 7 snap functionality in my example is not working because i'm using SplitPane, ContentPane and TabGroupPane in my DocumentContestHost ?
here's a little sample www.illpeople.de/test/XamDockManagerTest.zip
I want the Documents in the TabGroupPane to have the snap functionalty. Is this possible ?
Windows 7 does not support snap for ToolWindow style windows. If you want the snap functionality then you can set the AllowMaximizeFloatingWindows which will enable maximize support for the floating panetoolwindow but also enable the snap functionality (assuming your on windows 7 and that feature is enabled in the OS).