异常:Invalid parent form. When using DockingMdi or SystemMdi document style......
问题:
使用dockpanel多标签的时候出现下面的异常:
Invalid parent form. When using DockingMdi or SystemMdi document style, the DockPanel control must be the child control of the main MDI container form.
解决方法:
在添加dockpanel控件窗体中,把设置主窗体 IsMdiContainer=true。