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
Namespace: Syncfusion.UI.Xaml.Diagram.Theming
Assembly: Syncfusion.SfDiagram.UWP.dll
Syntax
public class Theme : Object
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. |