CompositeDesignerTheme.ShowDropShadow Property


Gets or sets a value indicating whether the composite designer theme will display drop shadows around the composite activity designer.

Namespace:   System.Workflow.ComponentModel.Design
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public virtual bool ShowDropShadow { get; set; }

Property Value

Type: System.Boolean

true if the CompositeDesignerTheme displays drop shadows around the CompositeActivityDesigner; otherwise, false. The default is false.

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 : CompositeDesignerTheme
    public ParallelIfTheme(WorkflowTheme theme)
        : base(theme)
        this.ShowDropShadow = true;
        this.ConnectorStartCap = LineAnchor.None;
        this.ConnectorEndCap = LineAnchor.None;
        this.BorderStyle = DashStyle.Dash;
        this.WatermarkImagePath = @"parallelIfWatermark.png";
        this.WatermarkAlignment = DesignerContentAlignment.Fill;

To use the theme on a CompositeActivityDesigner, apply the ActivityDesignerThemeAttribute to the CompositeActivityDesigner class.

public class ParallelIfDesigner : ParallelActivityDesigner

.NET Framework
Available since 3.0
Return to top