Search
Palette.Theme Property
See Also
 





Gets or sets the CSS theme of the control.

Namespace: MindFusion.Diagramming.Blazor
Assembly: MindFusion.Diagramming.Blazor

 Syntax

C#  Copy Code

public string Theme { get; set; }

Visual Basic  Copy Code

Public Property Theme As String

 Property Value

A string used as a class identifier in CSS theme files.

 Remarks

To apply a predefined theme, set the Theme property to the string identifier of the theme (e.g. "standard") and make sure the corresponding CSS file is loaded by your application, by placing the themes subfolder inside application's wwwroot folder and referencing the desired CSS file.

Razor  Copy Code

<link rel="stylesheet" href="themes/standard.css" />
...
<Palette @ref="palette" Theme="standard"/>

The library includes a set of ten predefined themes, which you can find in the "themes" subfolder of distribution. You can easily create your own theme by copying one of them and replacing the identifier. The expand/collapse icons are inside the themes/icons subfolder. If you do not wish to use a theme, but keep the icons, copy the icons folder to your application's wwwroot folder.

 See Also