OSSkin is powerful drop-in component that automatically skins any windows forms application from a choice of 18 embedded OS themes and styles. OSSkin uses an advanced skin engine that can skin all windows forms controls, scrollbars and common dialogs without requiring any changes to your projects or source code.

In order to skin your application you only need to drop this component onto the main form or the first visible form of your application at design-time.

Using the properties available on the OSSkin component you can determine which OS style to use, what forms and controls should be skinned and whether to apply translucent shadows to your forms.

Use the Style property to determine which OS style should be used to skin your application. Use the TargetControls property to determine what forms or controls you wish to have the skin applied. Use the ToolStripStyle property to control the appearance of all ToolStrip controls in your application. The ShadowVisible and ShadowStyle affects the visibility and appearance of the form shadow.

This class cannot be inherited.

The following tables list the members exposed by OSSkin.

Public Constructors

 NameDescription
StaticPublic methodOSSkinOverloaded. Initializes a new instance of the OSSkin class.
Top

Public Properties

 NameDescription
Public propertyContainerGets the IContainer that contains the Component. (inherited from Component)
Public propertyCustomBackgroundPaintSpecifies whether to enable custom background painting, this only applies to the client region of the Form, Panel and UserControl controls.
Public propertyExcludeTagSpecifies a global tag,

any Control or Formwhose Tag value matches this string will automatically have the skin removed, regardless of the TargetControls setting.

Public propertyHookSystemColorsSpecifies whether to override system colors and replace them with the skin palette.
Public propertyHookSystemDrawingSpecifies whether to skin parts that are directly drawn by the OS platform.
Public propertyIncludeTagSpecifies a global include tag,

any Control or Formwhose Tag value matches this string will automatically get skinned, regardless of the TargetControls setting.

Public propertyShadowStyleSpecifies the shadow style to apply to all forms.
Public propertyShadowVisibleSpecifies whether the form shadow is visible. The form shadow is a translucent drop shadow effect applied to all application forms.
Public propertySiteOverridden. Overridden, see Site
Public propertySkinCommonDialogsSpecifies whether to skin the common dialog components, such as the OpenFileDialog, SaveFileDialog, FontDialog etc.
Public propertySkinModeSpecifies how application forms and controls will be skinned.

Use Manual to manually skin forms and controls.

Use Automatic to automatically skin all application forms and controls.

Public propertySkinSystemControlsSpecifies whether to skin all native system controls and dialogs.
Public propertyStyleSpecifies the OS skin style to apply to all target controls
Public propertyTargetControlsSpecifies which application controls will have the skin applied.

Use None to skin no application forms or controls,

Use Forms to skin only application forms,

Use Controls to skin only application controls,

Use FormsAndControls to skin all application forms and controls,

Use TaggedControls to skin all tagged application forms and controls,

Public propertyToolStripStyleSpecifies what ToolStrip render style to use. Use System to render toolstrips with skinned elements.

Use Professional to render toolstrips with professional skinned colors.

Use Mixed to render toolstrips with a combination of system and professional styles.

Public propertyUseSystemFontsSpecifies whether to use system fonts in place of the skin fonts.
Top

Public Methods

 NameDescription
Public methodStaticApplySkinOverloaded. Manually applies the skin to the entire application, the application skin is restored using the current settings.
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (inherited from MarshalByRefObject)
Public methodDisposeReleases all resources used by the Component. (inherited from Component)
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (inherited from Object)
Public methodGetHashCodeServes as a hash function for a particular type. (inherited from Object)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (inherited from MarshalByRefObject)
Public methodGetTypeGets the Type of the current instance. (inherited from Object)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (inherited from MarshalByRefObject)
Public methodRefreshRefreshes the application skin using the current settings.
Public methodStaticRemoveSkinOverloaded. Manually removes the skin from the entire application
Public methodShutdownManually shuts down the skin engine and disposes all resources.
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden. (inherited from Component)
Top

Public Events

 NameDescription
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method. (inherited from Component)
Top

Explicit Interface Implementations

 NameDescription
StaticPrivate methodOSSkinOverloaded. Initializes a new instance of the OSSkin class.
Top

See Also