menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Theme - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Theme

    A theme is a set of colors, fonts, and effects that determines the overall look diagram control. Themes are a great way to change the tone of entire diagram control quickly and easily.

    Inheritance
    System.Object
    Theme
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.UI.Xaml.Diagram.Theming
    Assembly: Syncfusion.SfDiagram.WPF.dll
    Syntax
    public class Theme

    Constructors

    Theme()

    Creates a new instance of Theme class.

    Declaration
    public Theme()

    Properties

    ColorPalette

    Gets or sets color palatte for diagram control themes.

    Declaration
    public ColorPalette ColorPalette { get; set; }
    Property Value
    Type
    ColorPalette

    ConnectorEffects

    Gets or sets collection of theme color effects for diagam connectors.

    Declaration
    public EffectCollection ConnectorEffects { get; set; }
    Property Value
    Type
    EffectCollection

    ShapeEffects

    Gets or sets collection of theme color effects for diagam objects.

    Declaration
    public EffectCollection ShapeEffects { get; set; }
    Property Value
    Type
    EffectCollection

    VariantEffects

    Gets or sets collection of theme color effects for diagam nodes.

    Declaration
    public EffectCollection VariantEffects { get; set; }
    Property Value
    Type
    EffectCollection

    Methods

    GenerateConnectorStyles()

    Method to generate theme styles for diagram connectors.

    Declaration
    public virtual Dictionary<StyleId, DiagramItemStyle> GenerateConnectorStyles()
    Returns
    Type Description
    System.Collections.Generic.Dictionary<StyleId, DiagramItemStyle>

    Returns connector theme styles.

    GenerateNodeStyles()

    Method to generate theme styles for diagram nodes.

    Declaration
    public virtual Dictionary<StyleId, DiagramItemStyle> GenerateNodeStyles()
    Returns
    Type Description
    System.Collections.Generic.Dictionary<StyleId, DiagramItemStyle>

    Returns node theme styles.

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