/// <summary>
 ///	Initializes a new instance of <see cref='OpenLiveWriter.Controls.LightweightControlCollection'/>.
 /// </summary>
 /// <param name='owner'>The <see cref='OpenLiveWriter.Controls.ILightweightControlContainerControl'/> that is <see cref='OpenLiveWriter.Controls.LightweightControlCollection'/> is providing service for.</param>
 public LightweightControlCollection(ILightweightControlContainerControl owner)
 {
     this.owner = owner;
 }
Ejemplo n.º 2
0
 /// <summary>
 ///	Initializes a new instance of <see cref='OpenLiveWriter.Controls.LightweightControlCollection'/>.
 /// </summary>
 /// <param name='owner'>The <see cref='OpenLiveWriter.Controls.ILightweightControlContainerControl'/> that is <see cref='OpenLiveWriter.Controls.LightweightControlCollection'/> is providing service for.</param>
 public LightweightControlCollection(ILightweightControlContainerControl owner)
 {
     this.owner = owner;
 }
 /// <summary>
 /// Recursively lays out all lightweight controls in this lightweight control.
 /// </summary>
 /// <param name="lightweightControlContainerControl"></param>
 private void aLayoutLightweightControls(ILightweightControlContainerControl lightweightControlContainerControl)
 {
     //	If there are lightweight controls to layout, enumerate them.
     if (lightweightControlContainerControl.LightweightControls != null)
     {
         //	Enumerate the child lightweight controls and layout each one.
         foreach (LightweightControl lightweightControl in lightweightControlContainerControl.LightweightControls)
         {
             //	Recursively layout all the lightweight controls in the lightweight control,
             //	then layout the lightweight control.
             aLayoutLightweightControls(lightweightControl);
             lightweightControl.PerformLayout();
         }
     }
 }