コード例 #1
0
        public MainForm()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // Initialize tabbed MDI manager
            //
            tabbedMDIManager = new Syncfusion.Windows.Forms.Tools.TabbedMDIManager();
            tabbedMDIManager.AttachToMdiContainer(this);
        }
コード例 #2
0
 private void biTabbedMDI_Click(object sender, System.EventArgs e)
 {
     // Toggle tabbed MDI mode
     Syncfusion.Windows.Forms.Tools.XPMenus.BarItem barItem = sender as Syncfusion.Windows.Forms.Tools.XPMenus.BarItem;
     if (barItem != null)
     {
         if (barItem.Checked)
         {
             tabbedMDIManager.DetachFromMdiContainer(this, true);
             barItem.Checked = false;
         }
         else
         {
             tabbedMDIManager.AttachToMdiContainer(this);
             barItem.Checked = true;
         }
     }
 }