WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfSkinManager - WindowsForms API Reference | Syncfusion IThemeProvider and IVisualStyle . ">

    Show / Hide Table of Contents

    Class SfSkinManager

    Applies and manages the themes for the controls and components which are derived from the IThemeProvider and IVisualStyle .

    Inheritance
    System.Object
    SkinManager
    SfSkinManager
    Inherited Members
    SkinManager.IsThemeChanged
    SkinManager.ContainsSkinManager
    SkinManager.visualStyle
    SkinManager.SetVisualStyle(Control, VisualTheme)
    SkinManager.SetVisualStyle(Control, String)
    SkinManager.SetVisualStyle(Component, VisualTheme)
    SkinManager.SetVisualStyle(Component, String)
    SkinManager.control_ControlAdded(Object, ControlEventArgs)
    SkinManager.Controls
    SkinManager.VisualTheme
    SkinManager.ApplicationVisualTheme
    Namespace: Syncfusion.WinForms.Controls
    Assembly: Syncfusion.Core.WinForms.dll
    Syntax
    public class SfSkinManager : SkinManager
    Remarks

    The SfSkinManager applies the themes for the controls or components of IThemeProvider type. The ThemeName of the SfSkinManager must be available in ThemeHelper, Otherwise the default theme settings of control or component will be applied.

    Constructors

    SfSkinManager(IContainer)

    Initializes a new instance of the SfSkinManager class and add this to the specified container.

    Declaration
    public SfSkinManager(IContainer container)
    Parameters
    Type Name Description
    System.ComponentModel.IContainer container

    The System.ComponentModel.IContainer control.

    Remarks

    This will allow to create only one SfSkinManager instance in a given container.

    Properties

    Component

    Gets or sets the control or component to apply the theme settings.

    Declaration
    public Component Component { get; set; }
    Property Value
    Type Description
    System.ComponentModel.Component

    ThemeName

    Gets or sets a name of the theme to be applied to control.

    Declaration
    public string ThemeName { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    The theme name must be available in ThemeHelper, Otherwise the default theme settings will be applied to the control of the SfSkinManager.

    Methods

    Dispose(Boolean)

    Releases all resources used by the SfSkinManager class.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    True to release both managed and unmanaged resources; false to release only unmanaged resources.

    Overrides
    SkinManager.Dispose(Boolean)

    LoadAssembly(Assembly)

    Loads the assembly to register the theme XML configured files.

    Declaration
    public static void LoadAssembly(Assembly assembly)
    Parameters
    Type Name Description
    System.Reflection.Assembly assembly

    An assembly that has the theme XML configuration file.

    SetTheme(Component, String)

    Sets the theme to given control and its inner controls which are derived from the IThemeProvider.

    Declaration
    public static void SetTheme(Component component, string themeName)
    Parameters
    Type Name Description
    System.ComponentModel.Component component

    The System.ComponentModel.Component to set the theme.

    System.String themeName

    A name of the theme to be set to control.

    Remarks

    This method will set the theme to controls which is derived from IThemeProvider.

    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved