Example #1
0
        private void ribbonControl_Merge(object sender, RibbonMergeEventArgs e)
        {
            RibbonControl parentRibbon = sender as RibbonControl;
            RibbonControl childRibbon  = e.MergedChild;

            parentRibbon.StatusBar.MergeStatusBar(childRibbon.StatusBar);
        }
Example #2
0
        protected override void RaiseMerge(RibbonMergeEventArgs e)
        {
            RibbonControlEx control = e.MergedChild as RibbonControlEx;

            control.MergeOwner = this;
            base.RaiseMerge(e);
        }
 private void MainMerge(object sender, RibbonMergeEventArgs e)
 {
     if (rbnMain.MergedPages.Count != 0)
     {
         rbnMain.SelectedPage = rbnMain.MergedPages[0];
     }
 }
Example #4
0
        private void ribbon_UnMerge(object sender, RibbonMergeEventArgs e)
        {
            var childBar = e.MergedChild.StatusBar;

            if (childBar != null)
            {
                ribbonStatusBar.UnMergeStatusBar();
            }
        }
Example #5
0
        /// <summary>
        /// MDI formlar açılırken ribbon menüler birleştirilir.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ribbonControl_Merge(object sender, RibbonMergeEventArgs e)
        {
            var mergedRibbon = e.MergeOwner.MergedRibbon;

            if (mergedRibbon != null)
            {
                ribbonControl.SelectedPage = mergedRibbon.SelectedPage;
            }
        }
Example #6
0
        private void ribbon_UnMerge(object sender,
                                    RibbonMergeEventArgs e)
        {
            RibbonControl parentRRibbon = sender as RibbonControl;

            if (parentRRibbon != null)
            {
                parentRRibbon.StatusBar.UnMergeStatusBar();
            }
        }
Example #7
0
        private void ribbon_Merge(object sender,
                                  RibbonMergeEventArgs e)
        {
            RibbonPage page = null;

            if (e.MergedChild.PageCategories.Count > 0)
            {
                if (e.MergedChild.PageCategories[0]
                    .Pages.Count > 0)
                {
                    page = e.MergedChild.PageCategories[0]
                           .Pages[0];
                }
            }
            else
            {
                if (e.MergedChild.DefaultPageCategory.Pages.Count > 0)
                {
                    page = e.MergedChild.DefaultPageCategory.Pages[0];
                }
            }

            if (page != null)
            {
                ribbon.SelectedPage = page;
            }

            // merge status bar
            RibbonControl parentRRibbon = sender as RibbonControl;
            RibbonControl childRibbon   = e.MergedChild;

            if (childRibbon.StatusBar != null)
            {
                if (parentRRibbon != null)
                {
                    parentRRibbon.StatusBar.MergeStatusBar(childRibbon.StatusBar);
                }
            }
        }
Example #8
0
 private void MasterRibbon_Merge(object sender, RibbonMergeEventArgs e)
 {
     MasterRibbon.SelectedPage = e.MergedChild.SelectedPage;
 }
Example #9
0
 private void ribbonControl1_UnMerge(object sender, RibbonMergeEventArgs e)
 {
     ribbonControl1.SelectedPage = ownPage;
     //ribbonStatusBar.UnMergeStatusBar();
 }
Example #10
0
 private void ribbonControl1_Merge(object sender, RibbonMergeEventArgs e)
 {
     ribbonControl1.SelectedPage = Ribbon.MergedPages[0];
     //ribbonStatusBar.MergeStatusBar(e.MergedChild.StatusBar);
 }
Example #11
0
 private void ribbon_UnMerge(object sender, RibbonMergeEventArgs e)
 {
     var childBar = e.MergedChild.StatusBar;
     if (childBar != null)
         ribbonStatusBar.UnMergeStatusBar();
 }
Example #12
0
 private void ribbonControl1_UnMerge(object sender, RibbonMergeEventArgs e)
 {
     // RibbonControl parentRRibbon = sender as RibbonControl;
     // parentRRibbon?.StatusBar.UnMergeStatusBar();
 }
Example #13
0
 void ribbonControl1_Merge(object sender, RibbonMergeEventArgs e)
 {
     ribbonControl1.SelectedPage = e.MergedChild.SelectedPage;
 }
Example #14
0
        private void ribbonControl_UnMerge(object sender, RibbonMergeEventArgs e)
        {
            RibbonControl parentRibbon = sender as RibbonControl;

            parentRibbon.StatusBar.UnMergeStatusBar();
        }
Example #15
0
        void parent_Merge(object sender, RibbonMergeEventArgs e)
        {
            RibbonControl ribbon = sender as RibbonControl;

            ribbon.SelectedPage = ribbon.MergedPages[0];
        }
Example #16
0
        private void MainRibbon_Merge(object sender, RibbonMergeEventArgs e)
        {
            RibbonControl main = sender as RibbonControl;
            RibbonControl child = e.MergedChild;

            if (e.MergedChild.Pages.Count > 0)
                main.SelectedPage = child.Pages[0];

            // merge status bar
            main.StatusBar.MergeStatusBar(child.StatusBar);
        }
Example #17
0
 private void MainRibbon_UnMerge(object sender, RibbonMergeEventArgs e)
 {
     // un-merge status bar
     RibbonControl main = sender as RibbonControl;
     main.StatusBar.UnMergeStatusBar();
 }