raise OnDataSourceViewChanged events when data changes
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / MenuItemStyle.cs
index e2d9dbd875a1d6688b29e030e0eb36543f104708..6e2c9a1865b18a05b86b4af24f9c784c0274f5ef 100644 (file)
@@ -36,7 +36,7 @@ using System.ComponentModel;
 
 namespace System.Web.UI.WebControls
 {
-       public class MenuItemStyle: Style
+       public sealed class MenuItemStyle: Style
        {
                private const string HORZ_PADD = "HorizontalPadding";
                private const string SPACING = "ItemSpacing";
@@ -47,7 +47,7 @@ namespace System.Web.UI.WebControls
                        return ViewState [v] != null;
                }
                
-               [DefaultValue (0)]
+               [DefaultValue (typeof (Unit), "")]
                [NotifyParentProperty (true)]
                public Unit HorizontalPadding {
                        get {
@@ -60,7 +60,7 @@ namespace System.Web.UI.WebControls
                        }
                }
 
-               [DefaultValue (0)]
+               [DefaultValue (typeof (Unit), "")]
                [NotifyParentProperty (true)]
                public Unit VerticalPadding {
                        get {
@@ -73,7 +73,7 @@ namespace System.Web.UI.WebControls
                        }
                }
 
-               [DefaultValue (0)]
+               [DefaultValue (typeof (Unit), "")]
                [NotifyParentProperty (true)]
                public Unit ItemSpacing {
                        get {
@@ -86,7 +86,8 @@ namespace System.Web.UI.WebControls
                        }
                }
 
-               protected internal override bool IsEmpty {
+               // FIXME: shouldn't be part of the public API
+               public override bool IsEmpty {
                        get {
                                return base.IsEmpty && 
                                       !IsSet(HORZ_PADD) &&