protected void AddDisplayable() { if (Site != null && Site.DesignMode) { return; } if (Displayable != null) { displayer = Displayable.AddTo(CurrentItem, PropertyName, this); if (displayer != null) { if (HeaderTemplate != null) { Control header = new SimpleTemplateContainer(); Controls.AddAt(0, header); HeaderTemplate.InstantiateIn(header); } if (FooterTemplate != null) { Control footer = new SimpleTemplateContainer(); Controls.Add(footer); FooterTemplate.InstantiateIn(footer); } } } }
protected void AppendDefinedTemplate(ITemplate template, Control container) { if (template != null) { Control templateContainer = new SimpleTemplateContainer(); container.Controls.Add(templateContainer); template.InstantiateIn(templateContainer); } }
protected void AppendDefinedTemplate(ITemplate template, Control container) { if (template != null) { Control templateContainer = new SimpleTemplateContainer(); container.Controls.Add(templateContainer); template.InstantiateIn(templateContainer); } }