1.窗体frmProperty:
1 public partial class frmProperty : WeifenLuo.WinFormsUI.Docking.DockContent
2 {
3 public frmProperty()
4 {
5 InitializeComponent();
6 }
frmMain中有一DockPanel控件,名称为dockPanel
3.frmProperty在主窗体的dockPanel控件中以"文档"(DockState.Document)方式显示:
1 frmProperty.GetSingleInstance().Show(dockPanel, WeifenLuo.WinFormsUI.Docking.DockState.Document );