We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

dropping a window into the DockingStudioDemo

I'm experimenting with the DockingStudio demo. My application creates a separate window class and I would like to drop this window in place of the content of one of the Docking Document Tab.

--
Christoph

9 Replies

VS Vallarasu S Syncfusion Team May 27, 2010 01:48 PM UTC

Hi Christoph,

Thanks for your interest in Syncfusion products,

To add a form or control as a tabbed document you can use the following code,
this.dockingManager1.SetAsMDIChild(form, true);

Sample demonstrating the usage of DockingManager with TabbedMDIManager is available at the following link,

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=DockingMAnager1678956048.zip

You can fine more information on MDI Child Transition at the following link,

Essential_Tools_Windows_User_Guide

Under Tools Controls >> Docking Package >> Concepts and Features >> Advanced Features >> MDI Child Transition

Please let us know if we have misunderstood your query,

Regards
Vallarasu S.


ES EXAPT Systemtechnik GmbH May 28, 2010 08:10 AM UTC

Thanks. THis is quite what I was looking for. I'm going to test this.

Would there be a way to do that (binding) in the Windows1.xaml file (ref. SyncFusion Docking Demo) also?

--
Christoph


ES EXAPT Systemtechnik GmbH May 28, 2010 09:06 AM UTC

> To add a form or control as a tabbed document you can use the
> following code,
> this.dockingManager1.SetAsMDIChild(form, true);

To which "SetAsMDIChild(form,true);" are you refering? Can't find it in the example.
--
Christoph


VS Vallarasu S Syncfusion Team May 28, 2010 01:37 PM UTC

Hi Christoph,

Thanks for the update,

If you mean to SaveDockState, We provide support to save the dockstate to XML file and can be done as follows,

AppStateSerializer Serializer = new AppStateSerializer(SerializeMode.XMLFile, "test_persist.xml");
bool loaded = this.dockingManager.LoadDockState(Serializer);

AppStateSerializer Serializer=new AppStateSerializer(SerializeMode.XMLFile, "test_persist.xml");
this.dockingManager.SaveDockState(Serializer);
Serializer.PersistNow();

Refer the sample at the following link which demostrates the above and the previous post,

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=DockingManagerSaveLoadState-1168002843.zip

Please let us know if we have misunderstood your query,

Regards
Vallarasu S.


ES EXAPT Systemtechnik GmbH May 28, 2010 03:44 PM UTC

As for putting the binding in the XAML, I think we misunderstood.
I'm refering to

C:\Users\user\AppData\Local\Syncfusion\EssentialStudio\8.2.0.18\WPF\Tools.WPF\Samples\3.5\WindowsSamples\Docking Manager\Docking Demo\CS

In this example Window1 is the central WPF-window into which the whole docking elements are built.

I have a second Window (Window2) which I want to appear in the tab:

syncfusion:DockingManager.Header="Hoops Window"
syncfusion:DockingManager.State="Document"
syncfusion:DockingManager.CanDock="False"
syncfusion:DocumentContainer.MDIBounds="60,60,300,300"
syncfusion:DockingManager.CanFloat="False"
>



There, where Grid Background="Black" is located I would like to hang in my Window2.

Or, as another solution, give that grid a name and use that as the drawing area or make it a canvas or whatever drawable.


Hope you understand me.

--
Christoph



ES EXAPT Systemtechnik GmbH May 31, 2010 10:16 AM UTC

>> To add a form or control as a tabbed document you can use the
>> following code,
>> this.dockingManager1.SetAsMDIChild(form, true);

> To which "SetAsMDIChild(form,true);" are you refering? Can't find
> it in the example.
> --
> Christoph

Found that SetAsMDIChild meanwhile in the DockingManager Class.

--
Christoph


ES EXAPT Systemtechnik GmbH May 31, 2010 05:13 PM UTC

I still have some difficuluties in applying what you meant by using SetAsMDIChild (which is flagged as unknown when using it in the Window1 constructor as a method of the DockingManager class.

Take the WPF DockingManager sample. This is what I would like to extend such that I can use the tab ContentControls as a drawing Window for my application. Presently these tabs are only assigned to resources defined in the WPFControls.xaml file.

--
Christoph


MK Mayavel K Syncfusion Team June 3, 2010 03:11 PM UTC

Hi Christoph,

Thank you for your intrest in syncfusion products.

You can use DockingManager.Children.Add(FrameworkElement element) command to add new window to docking manager.

please let us know if you have any queries.

Regards,
Mayavel K



ES EXAPT Systemtechnik GmbH June 4, 2010 01:46 PM UTC

Thanks. That's it.
--
Christoph

Loader.
Live Chat Icon For mobile
Up arrow icon