[MonoDevelop] Property default value for custom widget

Ганьков Андрей gankov.andrey at inbox.ru
Mon Aug 5 07:47:33 UTC 2013


Anybody know how set default value to property?

I created my custom widget. My widget have few properties like IsEditable.
Logical that this property should be true by default. But in Stetic 
editor by default it is false.
I try add default value, but this don't work.

         [System.ComponentModel.DefaultValue (true)]
         public bool IsEditable{
             get { return entryDate.IsEditable;}
             set { entryDate.IsEditable = value;
                 buttonEditDate.Sensitive = value;}

Andrey Gankov
Mail:gankov.andrey at inbox.ru
ICQ: 230-684-976
Jabber:gankov at jabber.ru

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20130805/98e25547/attachment.html>

More information about the Monodevelop-list mailing list