Beispiel #1
0
 private void BuildControls(ICompositionContainer moduleContainer, ControlCollection controls)
 {
     foreach (Control currentControl in controls)
     {
         if (currentControl is UserControl)
         {
             CompositionContainer.BuildItem(PageBuilder, moduleContainer.Locator, currentControl);
             BuildControls(moduleContainer, currentControl.Controls);
         }
         else
         {
             BuildControls(moduleContainer, currentControl.Controls);
         }
     }
 }