[DefaultEvent ("Load"), DesignerCategory ("ASPXCodeBehind")]
[ToolboxItem (false)]
[Designer ("System.Web.UI.Design.UserControlDesigner, " + Consts.AssemblySystem_Design, typeof (IDesigner))]
+ [ParseChildren (true)]
#if NET_2_0
[Designer ("Microsoft.VisualStudio.Web.WebForms.WebFormDesigner, " + Consts.AssemblyMicrosoft_VisualStudio_Web, typeof (IRootDesigner))]
- [ParseChildren (true, "", ChildControlType = typeof (Control))]
#else
[RootDesignerSerializer ("Microsoft.VSDesigner.WebForms.RootCodeDomSerializer, " + Consts.AssemblyMicrosoft_VSDesigner, "System.ComponentModel.Design.Serialization.CodeDomSerializer, " + Consts.AssemblySystem_Design, true)]
- [ParseChildren (true)]
#endif
public class UserControl : TemplateControl, IAttributeAccessor, IUserControlDesignerAccessor
#if NET_2_0
{
if (initialized)
return;
- initialized = true;
this.Page = page;
+ InitializeAsUserControlInternal ();
+ }
+
+ internal void InitializeAsUserControlInternal ()
+ {
+ if (initialized)
+ return;
+ initialized = true;
WireupAutomaticEvents ();
FrameworkInitialize ();
}
set { ViewState["!DesignTimeTagName"] = value; }
}
#if NET_2_0
- [MonoTODO]
+ [MonoTODO ("Not implemented")]
int IFilterResolutionService.CompareFilters (string filter1, string filter2)
{
throw new NotImplementedException ();
}
- [MonoTODO]
+ [MonoTODO ("Not implemented")]
bool IFilterResolutionService.EvaluateFilter (string filterName)
{
throw new NotImplementedException ();