For developers: Reference the template of the simple widget designer
To wire up the template with the designer, you must return its name via the LayoutTemplatePath property. It specifies the path to the embedded resource following the naming convention <Namespace>.<ResourceFolderPath>.<TemplateName>, where you must replace path slashes inside the ResourceFolderPath with dots.
For example, if you have project called NewsRotator and the path to the template file is Resources/Views/RotatorDesigner.ascx, the LayoutTemplatePath property must return the following:
public
NewsRotator()
{
this
.LayoutTemplatePath = NewsRotator.layoutTemplatePath;
}
. . .
private
static
readonly
string
layoutTemplatePath = ControlUtilities.ToVppPath(
"NewsRotator.Resources.Views.RotatorDesigner.ascx"
);