I have a .NET User Control.
This control has public properties.
These properties have default values assigned to them.
I've added this control to Umbraco as a macro and can see the public properties defined as parameters.
I can use the control without any problems....however when adding the macro to a page, I want to be able to see the default value of the parameter.
However every time I add a control to a page, the parameter controls are blank (even though they do have default values assigned to them in the .NET User Control).
Is there anyway for the parameter controls to be pre-populated with the default values of the properties they are representing?
If so, how do I do it?
I want the user that's adding to control to be able to see what the default values of the parameters are.
Show default value in properties editor for Macro
I have a .NET User Control. This control has public properties. These properties have default values assigned to them. I've added this control to Umbraco as a macro and can see the public properties defined as parameters. I can use the control without any problems....however when adding the macro to a page, I want to be able to see the default value of the parameter. However every time I add a control to a page, the parameter controls are blank (even though they do have default values assigned to them in the .NET User Control). Is there anyway for the parameter controls to be pre-populated with the default values of the properties they are representing? If so, how do I do it? I want the user that's adding to control to be able to see what the default values of the parameters are.
is working on a reply...