namespace System.Web.UI.WebControls
{
- public class SubMenuStyle: Style
+ public class SubMenuStyle: Style, ICustomTypeDescriptor
{
private const string HORZ_PADD = "HorizontalPadding";
private const string VERT_PADD = "VerticalPadding";
{
base.FillStyleAttributes (attributes, urlResolver);
if (IsSet (HORZ_PADD)) {
- attributes.Add (HtmlTextWriterStyle.PaddingLeft, HorizontalPadding.ToString () + "px");
- attributes.Add (HtmlTextWriterStyle.PaddingRight, HorizontalPadding.ToString () + "px");
+ attributes.Add (HtmlTextWriterStyle.PaddingLeft, HorizontalPadding.ToString ());
+ attributes.Add (HtmlTextWriterStyle.PaddingRight, HorizontalPadding.ToString ());
}
if (IsSet (VERT_PADD)) {
- attributes.Add (HtmlTextWriterStyle.PaddingTop, VerticalPadding.ToString () + "px");
- attributes.Add (HtmlTextWriterStyle.PaddingBottom, VerticalPadding.ToString () + "px");
+ attributes.Add (HtmlTextWriterStyle.PaddingTop, VerticalPadding.ToString ());
+ attributes.Add (HtmlTextWriterStyle.PaddingBottom, VerticalPadding.ToString ());
}
}
+
+ [MonoTODO]
+ System.ComponentModel.AttributeCollection ICustomTypeDescriptor.GetAttributes ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ string ICustomTypeDescriptor.GetClassName ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ string ICustomTypeDescriptor.GetComponentName ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ TypeConverter ICustomTypeDescriptor.GetConverter ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ EventDescriptor ICustomTypeDescriptor.GetDefaultEvent ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ object ICustomTypeDescriptor.GetEditor (Type editorBaseType)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ EventDescriptorCollection ICustomTypeDescriptor.GetEvents ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ EventDescriptorCollection ICustomTypeDescriptor.GetEvents (Attribute [] arr)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties (Attribute [] arr)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ object ICustomTypeDescriptor.GetPropertyOwner (PropertyDescriptor pd)
+ {
+ throw new NotImplementedException ();
+ }
}
}