WPF - DocumentContainer MDI

I have a Main Window with the container on it and I have a second window2(form) I designed.

I have looked at most of this website as well as online and cant find how to open my child window2 inside the Main window using docking or document container.


My app is small three forms and main window but i'm stuck on this for few days now.
In Windows forms we just call the child form and tadaaa it inside the container.

Can someone please point me in the right direction, I tried using the

WPF.MDI.dll form another website but get an error: Cannot implicitly convert type xxxxxxx to 'System.Windows.UIElement'  so I am trying to stick to only using Syncfusion

please point me to the right direction ... how can I do this

Thanks


3 Replies

SN Sudharsan Narayanan Syncfusion Team July 5, 2021 04:13 PM UTC

Hi Michael,

Thanks for contacting Syncfusion Support.

We have prepared the sample for the Document Container control to achieve the requirement. Please check the sample and documentation to know the new features and behaviors.

Sample: https://www.syncfusion.com/downloads/support/directtrac/334618/ze/DocumentContainer-412231559

Documentation: https://help.syncfusion.com/wpf/tabbed-mdi-form/getting-started

Please ensure our sample and let us know our requirement is same as yours if not please share the issue reproducing project file and the video for the same. It will be helpful for us to proceed further and provide a prompt solution on this

Regards,
Sudharsan N



MI Michael July 5, 2021 05:59 PM UTC

Hi Sudharsan


Your MDI opens documents created within XAML.

My problem is I have my own forms designed that I want to open within the MDI container.

So in your example create a new window/form called lets say sales.xaml

When I open the MainForm I want to load the Sales page in the MDI

See attached ...


Attachment: WpfApp28_a013ba.zip


SN Sudharsan Narayanan Syncfusion Team July 6, 2021 01:57 PM UTC

Hi Michael,

Thanks for the update.

We have checked the sample from the requirement that the sales.XAML loads in the MDI and the main window cannot load another main window. We have created a sample to achieve your requirement by creates a new UserControl. Please check the sample for the reference from below location.

Sample:  https://www.syncfusion.com/downloads/support/forum/166896/ze/WpfApp28_a013ba-958063303



Regards,
Sudharsan N


Loader.
Up arrow icon