다음을 통해 공유


CompositeDesignerTheme(WorkflowTheme) 생성자

정의

CompositeDesignerTheme 클래스의 새 인스턴스를 초기화합니다.

public:
 CompositeDesignerTheme(System::Workflow::ComponentModel::Design::WorkflowTheme ^ theme);
public CompositeDesignerTheme (System.Workflow.ComponentModel.Design.WorkflowTheme theme);
new System.Workflow.ComponentModel.Design.CompositeDesignerTheme : System.Workflow.ComponentModel.Design.WorkflowTheme -> System.Workflow.ComponentModel.Design.CompositeDesignerTheme
Public Sub New (theme As WorkflowTheme)

매개 변수

theme
WorkflowTheme

복합 활동 테마와 연결할 WorkflowTheme입니다.

예제

다음 예제에서는 CompositeDesignerTheme 클래스에서 파생한 사용자 지정 CompositeDesignerTheme를 만들고 새 테마에 적절한 속성을 설정하는 방법을 보여 줍니다.

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

CompositeActivityDesigner에 테마를 사용하려면 ActivityDesignerThemeAttribute 클래스에 CompositeActivityDesigner를 적용합니다.

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

적용 대상