I am getting the PaneHeaders property from the Accordion control and looping through setting them into each of the editable text regions:
// Loop through the panes
for (int i = 1; i <= Panes; i++)
{
// Create new pane
AccordionPane pane = new AccordionPane();
pane.ID = "pane" + i;
// Prepare the header
string header = null;
if (headers.Length >= i)
{
header = ResHelper.LocalizeString(headers[i - 1]);
}
if (String.IsNullOrEmpty(header))
{
header = "Pane " + i;
}
string title = header;
// check if we are in design view
if (IsDesign)
{
header = EditableWebPartProperty.GetHTMLCode(null, this, "PaneHeaders", i, EditablePropertyTypeEnum.TextBox, header, null, null, null, true);
}
else
{
header = EditableWebPartProperty.ApplyReplacements(HttpUtility.HtmlEncode(header), false);
}
// Set the header of the pane
pane.Header = new TextTransformationTemplate(header);
acc.Panes.Add(pane);
var zone = AddZone(ID + "_" + i, title, pane.ContentContainer);
zone.Wireframe = true;
}