Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ActivityDesignerTheme Class

Note: This API is now obsolete.

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

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

[ObsoleteAttribute("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class ActivityDesignerTheme : DesignerTheme

The ActivityDesignerTheme type exposes the following members.

  NameDescription
Public methodActivityDesignerThemeInitializes an instance of an ActivityDesignerTheme.
Top

  NameDescription
Public propertyApplyToGets or sets the unqualified name of the designer type to which the designer theme is applied. (Inherited from DesignerTheme.)
Public propertyBackColorEndGets or sets the Color to end with when using a color gradient for the background color.
Public propertyBackColorStartGets or sets the starting color of the background when using a color gradient on the background.
Public propertyBackgroundStyleGets or sets the background style.
Public propertyBoldFontGets the font for the theme.
Public propertyBorderColorGets or sets the BorderColor for the theme.
Public propertyBorderPenGets the BorderPen for the theme.
Public propertyBorderStyleGets or sets the style used for the border.
Public propertyBorderWidthGets the width of the border in pixels.
Protected propertyContainingThemeGets the workflow theme that encapsulates the designer theme. (Inherited from DesignerTheme.)
Public propertyDesignerGeometryGets the geometry of the designer.
Public propertyDesignerImageGets the image associated with the designer.
Public propertyDesignerImagePathGets or sets the image path for the designer.
Public propertyDesignerTypeGets or sets the type of the designer associated with the designer theme. (Inherited from DesignerTheme.)
Public propertyFontGets the font of the text used by the theme.
Public propertyForeColorGets or sets the color of the foreground.
Public propertyForegroundBrushGets the Brush object associated with the theme.
Public propertyForegroundPenGets the Pen used for painting the foreground of the theme.
Public propertyImageSizeGets the size of the image of the theme.
Public propertyReadOnlyGets a value that indicates whether the designer theme is read-only. (Inherited from DesignerTheme.)
Public propertySizeGets the size of the designer.
Top

  NameDescription
Protected methodDisposeReleases the unmanaged resources and optionally releases the managed resources used by ActivityDesignerTheme. (Overrides DesignerTheme.Dispose(Boolean).)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows the DesignerTheme to attempt to free resources and perform other clean-up operations before it is reclaimed by garbage collection. (Inherited from DesignerTheme.)
Public methodGetBackgroundBrushGets a brush used to paint the area specified by the rectangle passed.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitializeInitializes the designer theme. (Overrides DesignerTheme.Initialize().)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodOnAmbientPropertyChangedCalled to signal changes to ambient settings. (Overrides DesignerTheme.OnAmbientPropertyChanged(AmbientProperty).)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIDisposable.DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from DesignerTheme.)
Top

NoteNote

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.

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

To use the theme on an ActivityDesigner, apply the ActivityDesignerThemeAttribute to the ActivityDesigner class.

[ActivityDesignerTheme(typeof(CustomActivityDesignerTheme))]
public class CustomActivityDesigner2 : ActivityDesigner

.NET Framework

Supported in: 4, 3.5, 3.0
Obsolete (compiler warning) in 4.6
Obsolete (compiler warning) in 4.6
Obsolete (compiler warning) in 4.5
Obsolete (compiler warning) in 4.5.1
Obsolete (compiler warning) in 4.5.2

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft