ActivityDesignerTheme ActivityDesignerTheme ActivityDesignerTheme ActivityDesignerTheme Class

Definition

Warning

This API is now obsolete.

Provides the look and feel property settings to a designer in a design-time environment.

public ref class ActivityDesignerTheme : System::Workflow::ComponentModel::Design::DesignerTheme
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class ActivityDesignerTheme : System.Workflow.ComponentModel.Design.DesignerTheme
type ActivityDesignerTheme = class
    inherit DesignerTheme
Public Class ActivityDesignerTheme
Inherits DesignerTheme
Inheritance
ActivityDesignerThemeActivityDesignerThemeActivityDesignerThemeActivityDesignerTheme
Derived
Attributes

Examples

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 : ActivityDesignerTheme
{
    public CustomActivityDesignerTheme(WorkflowTheme theme)
        : base(theme)
    {
        base.Initialize();
        this.BorderStyle = DashStyle.Solid;
        this.BorderColor = Color.FromArgb(0, 0, 0);
        this.BackColorStart = Color.FromArgb(37, 15, 242);
        this.BackColorEnd = Color.FromArgb(189, 184, 254);
        this.BackgroundStyle = LinearGradientMode.Vertical;
        this.ForeColor = Color.Black;
    }
}
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.

[ActivityDesignerTheme(typeof(CustomActivityDesignerTheme))]
public class CustomActivityDesigner2 : ActivityDesigner
<ActivityDesignerTheme(GetType(CustomActivityDesignerTheme))> _
Public Class CustomActivityDesigner2
    Inherits ActivityDesigner

Remarks

Note

This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

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.

Constructors

ActivityDesignerTheme(WorkflowTheme) ActivityDesignerTheme(WorkflowTheme) ActivityDesignerTheme(WorkflowTheme) ActivityDesignerTheme(WorkflowTheme)

Initializes an instance of an ActivityDesignerTheme.

Properties

ApplyTo ApplyTo ApplyTo ApplyTo

Gets or sets the unqualified name of the designer type to which the designer theme is applied.

(Inherited from DesignerTheme)
BackColorEnd BackColorEnd BackColorEnd BackColorEnd

Gets or sets the Color to end with when using a color gradient for the background color.

BackColorStart BackColorStart BackColorStart BackColorStart

Gets or sets the starting color of the background when using a color gradient on the background.

BackgroundStyle BackgroundStyle BackgroundStyle BackgroundStyle

Gets or sets the background style.

BoldFont BoldFont BoldFont BoldFont

Gets the font for the theme.

BorderColor BorderColor BorderColor BorderColor

Gets or sets the BorderColor for the theme.

BorderPen BorderPen BorderPen BorderPen

Gets the BorderPen for the theme.

BorderStyle BorderStyle BorderStyle BorderStyle

Gets or sets the style used for the border.

BorderWidth BorderWidth BorderWidth BorderWidth

Gets the width of the border in pixels.

ContainingTheme ContainingTheme ContainingTheme ContainingTheme

Gets the workflow theme that encapsulates the designer theme.

(Inherited from DesignerTheme)
DesignerGeometry DesignerGeometry DesignerGeometry DesignerGeometry

Gets the geometry of the designer.

DesignerImage DesignerImage DesignerImage DesignerImage

Gets the image associated with the designer.

DesignerImagePath DesignerImagePath DesignerImagePath DesignerImagePath

Gets or sets the image path for the designer.

DesignerType DesignerType DesignerType DesignerType

Gets or sets the type of the designer associated with the designer theme.

(Inherited from DesignerTheme)
Font Font Font Font

Gets the font of the text used by the theme.

ForeColor ForeColor ForeColor ForeColor

Gets or sets the color of the foreground.

ForegroundBrush ForegroundBrush ForegroundBrush ForegroundBrush

Gets the Brush object associated with the theme.

ForegroundPen ForegroundPen ForegroundPen ForegroundPen

Gets the Pen used for painting the foreground of the theme.

ImageSize ImageSize ImageSize ImageSize

Gets the size of the image of the theme.

ReadOnly ReadOnly ReadOnly ReadOnly

Gets a value that indicates whether the designer theme is read-only.

(Inherited from DesignerTheme)
Size Size Size Size

Gets the size of the designer.

Methods

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the unmanaged resources and optionally releases the managed resources used by ActivityDesignerTheme.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetBackgroundBrush(Rectangle) GetBackgroundBrush(Rectangle) GetBackgroundBrush(Rectangle) GetBackgroundBrush(Rectangle)

Gets a brush used to paint the area specified by the rectangle passed.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
Initialize() Initialize() Initialize() Initialize()

Initializes the designer theme.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnAmbientPropertyChanged(AmbientProperty) OnAmbientPropertyChanged(AmbientProperty) OnAmbientPropertyChanged(AmbientProperty) OnAmbientPropertyChanged(AmbientProperty)

Called to signal changes to ambient settings.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from DesignerTheme)

Applies to