ActivityDesignerTheme Class
Assembly: System.Workflow.ComponentModel (in system.workflow.componentmodel.dll)
Designer themes define the look and feel of a designer. This includes any background styles, foreground styles, fonts, and icons defined for the designer.
You can create a custom designer theme if you want to provide configuration abilities to properties unique to your designer. If you do not specify a designer theme for a custom designer, the theme from the base class is used.
The following example shows how to create a custom ActivityDesignerTheme by deriving from the ActivityDesignerTheme class and setting the appropriate properties for the new theme.
public class CustomActivityDesignerTheme : ActivityDesignerTheme { public CustomActivityDesignerTheme(WorkflowTheme theme) : base(theme) { base.Initialize(); this.BorderStyle = DashStyle.Solid; this.BorderColor = Color.FromArgb(0, 0, 0); this.BackColorStart = Color.FromArgb(37, 15, 242); this.BackColorEnd = Color.FromArgb(189, 184, 254); this.BackgroundStyle = LinearGradientMode.Vertical; this.ForeColor = Color.Black; } }
To use the theme on an ActivityDesigner, apply the ActivityDesignerThemeAttribute to the ActivityDesigner class.
[ActivityDesignerTheme(typeof(CustomActivityDesignerTheme))]
System.Workflow.ComponentModel.Design.DesignerTheme
System.Workflow.ComponentModel.Design.ActivityDesignerTheme
System.Workflow.ComponentModel.Design.CompositeDesignerTheme
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.