CompositeDesignerTheme Class
Provides theme settings to CompositeActivityDesigner objects.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
The CompositeDesignerTheme class controls the look and feel of a CompositeActivityDesigner object on a workflow design surface.
The following example shows how to create a custom CompositeDesignerTheme by deriving from the CompositeDesignerTheme class and setting the appropriate properties for the new theme.
Public Class ParallelIfTheme Inherits CompositeDesignerTheme Public Sub New(ByVal theme As WorkflowTheme) MyBase.new(theme) Me.ShowDropShadow = True Me.ConnectorStartCap = LineAnchor.None Me.ConnectorEndCap = LineAnchor.None Me.BorderStyle = DashStyle.Dash Me.WatermarkImagePath = "parallelIfWatermark.png" Me.WatermarkAlignment = DesignerContentAlignment.Fill End Sub End Class
To use the theme on a CompositeActivityDesigner, apply the ActivityDesignerThemeAttribute to the CompositeActivityDesigner class.
System.Workflow.ComponentModel.Design.DesignerTheme
System.Workflow.ComponentModel.Design.ActivityDesignerTheme
System.Workflow.ComponentModel.Design.CompositeDesignerTheme
System.Workflow.ComponentModel.Design.ActivityPreviewDesignerTheme
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.