CompositeDesignerTheme.ShowDropShadow Propiedad

Definición

Obtiene o establece un valor que indica si el tema del diseñador compuesto mostrará las sombras paralelas alrededor del diseñador de la actividad compuesta.

public:
 virtual property bool ShowDropShadow { bool get(); void set(bool value); };
public virtual bool ShowDropShadow { get; set; }
member this.ShowDropShadow : bool with get, set
Public Overridable Property ShowDropShadow As Boolean

Valor de propiedad

Boolean

true si CompositeDesignerTheme muestra las sombras paralelas alrededor de CompositeActivityDesigner; de lo contrario, false. De manera predeterminada, es false.

Ejemplos

El ejemplo siguiente muestra cómo crear un CompositeDesignerTheme personalizado derivando de la clase CompositeDesignerTheme y estableciendo las propiedades adecuadas para el nuevo tema.

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;
    }
}
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

Para utilizar el tema en CompositeActivityDesigner, aplique ActivityDesignerThemeAttribute a la clase CompositeActivityDesigner.

[ActivityDesignerTheme(typeof(ParallelIfTheme))]
public class ParallelIfDesigner : ParallelActivityDesigner
<ActivityDesignerTheme(GetType(ParallelIfTheme))> _
Public Class ParallelIfDesigner
    Inherits ParallelActivityDesigner

Se aplica a