[MonoDevelop] Design Time Properties for Custom Controls
andy at brdstudio.net
Sat Jul 18 13:27:37 EDT 2009
There has been a question that is very close to this one that was asked
just a day or two ago, but I'm not sure if it is the same question or
not. Please forgive me if I am asking the same question again.
Using standard data types (string, bool, int, etc) for design time
properties in custom controls in Monodevelop is easy, but I'm not sure
how to use non-standard data types. For instance if I had an enum that
looked like this:
and we want the design time property to be set like this (or something
private ImageSize _MyImageSize;
// this is where we want the design time property to be set
public ImageSize MyImageSize
How would we go about doing this, I know the answer is an easy one but I
just can seem to find it even though I have searched quite a bit. I'm
thinking that the same methods that would work for enums would work for
classes but I'm not sure of that either.
Again I apologyze if this has already been asked.
More information about the Monodevelop-list