Setting DesignerTheme and Icons for Code activitys
First To set the Icon to Activity set the property to "EmbededResourse" .
Code comes here.
#region look n feel
internal sealed class ApproveRequestCustomActivityDesignerTheme : ActivityDesignerTheme
{
public ApproveRequestCustomActivityDesignerTheme(WorkflowTheme theme)
: base(theme)
{
this.BorderColor = Color.Chocolate ;
this.BorderStyle = System.Drawing.Drawing2D.DashStyle.Solid;//DashStyle.Solid;
this.BackColorStart = Color.BurlyWood ;
this.BackColorEnd = Color.CornflowerBlue;
this.BackgroundStyle = System.Drawing.Drawing2D.LinearGradientMode.Vertical; //LinearGradientMode.Vertical;
}
}
[ActivityDesignerThemeAttribute(typeof(ApproveRequestCustomActivityDesignerTheme))]
public class ApproveRequestCustomActivityDesigner : ActivityDesigner
{
}
#endregion
[ToolboxItemAttribute(typeof(ActivityToolboxItem))]
[Designer(typeof(ApproveRequestCustomActivityDesigner), typeof(IDesigner))]
[ToolboxBitmap(typeof(ApproveRequestActivity), "Resources.ApprovalReq.bmp")]
