Hi,
So I’m creating a UserControl and I need to expose some properties in the editor. Ordinarily (in WinForms), I simply declare the property to be public and it just works. But so far it doesn’t appear in WiseJ.
I tested it with Image and string.
Is there a special attribute I need to use?
Thanks,
John
Here is an example. I made this custom carousel usercontrol
You can just go view the definition on any of the properties you want to mimic.
So for example you can add this to any user control to display the image browser
//
// Summary:
// Returns or sets the theme name or URL for the image to display in the Wisej.Web.PictureBox.
//
// Returns:
// The theme name or URL for the image to display in the Wisej.Web.PictureBox.
[Editor(“Wisej.Web.Design.ImageSourceEditor, Wisej.Web.Design”, typeof(UITypeEditor))]
[Localizable(true)]
[SRCategory(“CatAppearance”)]
[SRDescription(“PictureBoxImageLocationDescr”)]
[TypeConverter(“Wisej.Web.Design.ImageSourceConverter, Wisej.Web.Design”)]
public string ImageSource { get; set; }
Please login first to submit.