/// <summary>
 /// Recursively lays out all lightweight controls in this lightweight control.
 /// </summary>
 /// <param name="BehaviorControlContainerControl"></param>
 private void aLayoutBehaviorControls(IBehaviorControlContainerControl BehaviorControlContainerControl)
 {
     //	If there are lightweight controls to layout, enumerate them.
     if (BehaviorControlContainerControl.Controls != null)
     {
         //	Enumerate the child lightweight controls and layout each one.
         foreach (BehaviorControl BehaviorControl in BehaviorControlContainerControl.Controls)
         {
             //	Recursively layout all the lightweight controls in the lightweight control,
             //	then layout the lightweight control.
             aLayoutBehaviorControls(BehaviorControl);
             BehaviorControl.PerformLayout();
         }
     }
 }
Beispiel #2
0
 /// <summary>
 ///	Initializes a new instance of <see cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.BehaviorControlCollection'/>.
 /// </summary>
 /// <param name='owner'>The <see cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.IBehaviorControlContainerControl'/> that is <see cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.BehaviorControlCollection'/> is providing service for.</param>
 public BehaviorControlCollection(IBehaviorControlContainerControl owner)
 {
     this.owner = owner;
 }
 /// <summary>
 ///	Initializes a new instance of <see cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.BehaviorControlCollection'/>.
 /// </summary>
 /// <param name='owner'>The <see cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.IBehaviorControlContainerControl'/> that is <see cref='OpenLiveWriter.PostEditor.PostHtmlEditing.Behaviors.BehaviorControlCollection'/> is providing service for.</param>
 public BehaviorControlCollection(IBehaviorControlContainerControl owner)
 {
     this.owner = owner;
 }
 /// <summary>
 /// Recursively lays out all lightweight controls in this lightweight control.
 /// </summary>
 /// <param name="BehaviorControlContainerControl"></param>
 private void aLayoutBehaviorControls(IBehaviorControlContainerControl BehaviorControlContainerControl)
 {
     //	If there are lightweight controls to layout, enumerate them.
     if (BehaviorControlContainerControl.Controls != null)
     {
         //	Enumerate the child lightweight controls and layout each one.
         foreach (BehaviorControl BehaviorControl in BehaviorControlContainerControl.Controls)
         {
             //	Recursively layout all the lightweight controls in the lightweight control,
             //	then layout the lightweight control.
             aLayoutBehaviorControls(BehaviorControl);
             BehaviorControl.PerformLayout();
         }
     }
 }