[MonoDevelop] Third part widgets

Michael Hutchinson m.j.hutchinson at gmail.com
Tue Jul 8 12:33:52 EDT 2008


On Sun, Jul 6, 2008 at 11:19 AM, Chris Wright <dhasenan at gmail.com> wrote:
> 2008/7/6 True_Friend <true.friend2004 at gmail.com>:
>>
>> There are some other widgets available for GTK# which are not shipped with
>> mono and monodevelop. My question is this why not you add these to
>> monodevelop's visual designer so they are available by default to new users.
>
> It seems straightforward to add an item to the toolbox:
> - Put a System.ComponentModel.ToolboxItemAttribute on the class.
> - Put a System.ComponentModel.CategoryAttribute on the class.
> Now you can load the stuff at runtime by going through some dialogs
> (the + button in the toolbox). I didn't actually try this, but it
> should be that straightforward.

Actually, this won't work in Monodevelop 1.0 -- it uses an objects.xml
manifest embedded in the dll by Stetic. For MonoDevelop 2.0 we are
switching over to use the ComponentModel attributes.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list