|
|
@@ -99,10 +99,10 @@ namespace System.Web.UI.WebControls
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- [DefaultValueAttribute (null)]
|
|
|
+ [DefaultValueAttribute (null)]
|
|
|
[PersistenceMode (PersistenceMode.InnerProperty)]
|
|
|
- [EditorAttribute ("System.Web.UI.Design.WebControls.MenuBindingsEditor, " + Consts.AssemblySystem_Design, "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]
|
|
|
- [MergablePropertyAttribute (false)]
|
|
|
+ [EditorAttribute ("System.Web.UI.Design.WebControls.MenuBindingsEditor, " + Consts.AssemblySystem_Design, "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]
|
|
|
+ [MergablePropertyAttribute (false)]
|
|
|
public MenuItemBindingCollection DataBindings {
|
|
|
get {
|
|
|
if (dataBindings == null) {
|
|
|
@@ -142,7 +142,7 @@ namespace System.Web.UI.WebControls
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- [DefaultValueAttribute ("")]
|
|
|
+ [DefaultValueAttribute ("")]
|
|
|
public string DynamicItemFormatString {
|
|
|
get {
|
|
|
object o = ViewState ["DynamicItemFormatString"];
|
|
|
@@ -225,7 +225,7 @@ namespace System.Web.UI.WebControls
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- [DefaultValueAttribute ("")]
|
|
|
+ [DefaultValueAttribute ("")]
|
|
|
public string StaticItemFormatString {
|
|
|
get {
|
|
|
object o = ViewState ["StaticItemFormatString"];
|
|
|
@@ -670,11 +670,14 @@ namespace System.Web.UI.WebControls
|
|
|
[Localizable (true)]
|
|
|
public string SkipLinkText
|
|
|
{
|
|
|
- get {
|
|
|
- throw new NotImplementedException ();
|
|
|
+ get {
|
|
|
+ object o = ViewState ["SkipLinkText"];
|
|
|
+ if (o != null)
|
|
|
+ return (string) o;
|
|
|
+ return String.Empty;
|
|
|
}
|
|
|
- set {
|
|
|
- throw new NotImplementedException ();
|
|
|
+ set {
|
|
|
+ ViewState ["SkipLinkText"] = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -760,6 +763,10 @@ namespace System.Web.UI.WebControls
|
|
|
|
|
|
protected internal virtual void RaisePostBackEvent (string eventArgument)
|
|
|
{
|
|
|
+ if (!Enabled)
|
|
|
+ return;
|
|
|
+
|
|
|
+ EnsureChildControls();
|
|
|
MenuItem item = FindItemByPos (eventArgument);
|
|
|
if (item == null) return;
|
|
|
item.Selected = true;
|
|
|
@@ -917,7 +924,8 @@ namespace System.Web.UI.WebControls
|
|
|
|
|
|
protected internal override void CreateChildControls ()
|
|
|
{
|
|
|
- base.CreateChildControls ();
|
|
|
+ Controls.Clear ();
|
|
|
+ EnsureDataBound ();
|
|
|
}
|
|
|
|
|
|
protected override void EnsureDataBound ()
|
|
|
@@ -955,7 +963,7 @@ namespace System.Web.UI.WebControls
|
|
|
[MonoTODO]
|
|
|
protected override void OnDataBinding (EventArgs e)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ base.OnDataBinding (e);
|
|
|
}
|
|
|
|
|
|
protected internal override void OnPreRender (EventArgs e)
|