Previously, creating MDI XAF applications wasn’t an easy task. Now, XAF includes a new MDI Show View Strategy and enabling the multiple document interface is a matter of writing a single line of code. What’s more, the new MDI Show View Strategy comes with docking functionality which allows you dock and undock Views. This means that root List Views can now be opened in separate windows.
To enable this feature I simply switch an application’s Show View Strategy to MdiShowViewStrategy:
winApplication.ShowViewStrategy = new MdiShowViewStrategy(winApplication);
And I now have an MDI application:
As docking is also supported, I can dock and undock views (opened in tabs) by simply dragging them:
I can even Control + Shift + Click a navigation item and the corresponding View will be invoked in a new window:
And that is how 10.1 will make your life easier if you work with MDI applications!
Until next time, happy XAFing! :-)