Ejemplo n.º 1
0
 // 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();
     }
 }
Ejemplo n.º 2
0
 void UpdateScalableControlSubscribing()
 {
     foreach (object item in Items)
     {
         IScalableRibbonControl scalableRibbonControl = item as IScalableRibbonControl;
         if (scalableRibbonControl == null) continue;
         scalableRibbonControl.Scaled -= OnScalableControlScaled;
         scalableRibbonControl.Scaled += OnScalableControlScaled;
     }
 }
Ejemplo n.º 3
0
 // 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();
     }
 }