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";
return ViewState [v] != null;
}
- [DefaultValue (0)]
+ [DefaultValue (typeof (Unit), "")]
[NotifyParentProperty (true)]
public Unit HorizontalPadding {
get {
}
}
- [DefaultValue (0)]
+ [DefaultValue (typeof (Unit), "")]
[NotifyParentProperty (true)]
public Unit VerticalPadding {
get {
}
}
- [DefaultValue (0)]
+ [DefaultValue (typeof (Unit), "")]
[NotifyParentProperty (true)]
public Unit ItemSpacing {
get {
}
}
- 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) &&