private void ribbonControl_Merge(object sender, RibbonMergeEventArgs e) { RibbonControl parentRibbon = sender as RibbonControl; RibbonControl childRibbon = e.MergedChild; parentRibbon.StatusBar.MergeStatusBar(childRibbon.StatusBar); }
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]; } }
private void ribbon_UnMerge(object sender, RibbonMergeEventArgs e) { var childBar = e.MergedChild.StatusBar; if (childBar != null) { ribbonStatusBar.UnMergeStatusBar(); } }
/// <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; } }
private void ribbon_UnMerge(object sender, RibbonMergeEventArgs e) { RibbonControl parentRRibbon = sender as RibbonControl; if (parentRRibbon != null) { parentRRibbon.StatusBar.UnMergeStatusBar(); } }
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); } } }
private void MasterRibbon_Merge(object sender, RibbonMergeEventArgs e) { MasterRibbon.SelectedPage = e.MergedChild.SelectedPage; }
private void ribbonControl1_UnMerge(object sender, RibbonMergeEventArgs e) { ribbonControl1.SelectedPage = ownPage; //ribbonStatusBar.UnMergeStatusBar(); }
private void ribbonControl1_Merge(object sender, RibbonMergeEventArgs e) { ribbonControl1.SelectedPage = Ribbon.MergedPages[0]; //ribbonStatusBar.MergeStatusBar(e.MergedChild.StatusBar); }
private void ribbon_UnMerge(object sender, RibbonMergeEventArgs e) { var childBar = e.MergedChild.StatusBar; if (childBar != null) ribbonStatusBar.UnMergeStatusBar(); }
private void ribbonControl1_UnMerge(object sender, RibbonMergeEventArgs e) { // RibbonControl parentRRibbon = sender as RibbonControl; // parentRRibbon?.StatusBar.UnMergeStatusBar(); }
void ribbonControl1_Merge(object sender, RibbonMergeEventArgs e) { ribbonControl1.SelectedPage = e.MergedChild.SelectedPage; }
private void ribbonControl_UnMerge(object sender, RibbonMergeEventArgs e) { RibbonControl parentRibbon = sender as RibbonControl; parentRibbon.StatusBar.UnMergeStatusBar(); }
void parent_Merge(object sender, RibbonMergeEventArgs e) { RibbonControl ribbon = sender as RibbonControl; ribbon.SelectedPage = ribbon.MergedPages[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); }
private void MainRibbon_UnMerge(object sender, RibbonMergeEventArgs e) { // un-merge status bar RibbonControl main = sender as RibbonControl; main.StatusBar.UnMergeStatusBar(); }