// Finds and decrease size of all scalable elements in the given group box void DecreaseScalableElement() { foreach (object item in Items) { IScalableRibbonControl scalableRibbonControl = item as IScalableRibbonControl; if (scalableRibbonControl == null) continue; scalableRibbonControl.Reduce(); } }
void UpdateScalableControlSubscribing() { foreach (object item in Items) { IScalableRibbonControl scalableRibbonControl = item as IScalableRibbonControl; if (scalableRibbonControl == null) continue; scalableRibbonControl.Scaled -= OnScalableControlScaled; scalableRibbonControl.Scaled += OnScalableControlScaled; } }
// Finds and increase size of all scalable elements in the given group box void IncreaseScalableElement() { foreach (object item in Items) { IScalableRibbonControl scalableRibbonControl = item as IScalableRibbonControl; if (scalableRibbonControl == null) { continue; } scalableRibbonControl.Enlarge(); } }