ActivityDesignerTheme Class
Provides the look and feel property settings to a designer in a design-time environment.
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 Inherits ActivityDesignerTheme Public Sub New(ByVal theme As WorkflowTheme) MyBase.new(theme) MyBase.Initialize() Me.BorderStyle = DashStyle.Solid Me.BorderColor = Color.FromArgb(0, 0, 0) Me.BackColorStart = Color.FromArgb(37, 15, 242) Me.BackColorEnd = Color.FromArgb(189, 184, 254) Me.BackgroundStyle = LinearGradientMode.Vertical Me.ForeColor = Color.Black End Sub End Class
To use the theme on an ActivityDesigner, apply the ActivityDesignerThemeAttribute to the ActivityDesigner class.
System.Workflow.ComponentModel.Design.DesignerTheme
System.Workflow.ComponentModel.Design.ActivityDesignerTheme
System.Workflow.ComponentModel.Design.CompositeDesignerTheme
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.