Search code examples
c#wpfms-officemdi

How to create workspace like MS office applications?


I'm wanting to create something similar to this picture from excel:

Excel with two documents

I did something similar in winforms with MDI child windows. I understand from other questions that MDI is not supported in WPF. However, isn't excel 2010 a WPF application ?

So I started with a canvas and a user control. I'm easily able to create user controls and place on the canvas but.. they don't look like a window and they don't have the support of a window for moving, resizing, closing etc and I'm realising that's a lot of code I need to find and get working.

I've read that MS has dropped MDI for a reason but on the otherhand, it looks like office is implementing it ?

Before I use a project like http://wpfmdi.codeplex.com/ I thought i'd ask and see if there is something "MS approved" I should be using.


Solution

  • AvalonDock from Extended Wpf Toolkit may be helpful. Use it with Caliburn.Micro to manage windows. Example solution: https://github.com/tgjones/gemini