internal void FillNests() { for (int i = 0; i < CountNest; i++) { NestForm nestForm = new NestForm(); //Set the grid dimention ColumnDefinition gridCol = new ColumnDefinition(); dynamicGrid.ColumnDefinitions.Add(gridCol); //Add new form to list NestList.Add(nestForm); Frame frmMain = new Frame(); //Set the frame frmMain.Content = NestList[i]; //Assign the form to the column Grid.SetColumn(frmMain, i); dynamicGrid.Children.Add(frmMain); } }
internal void CreateForm() { NestForm nestForm = new NestForm(); NestList.Add(nestForm); }