Class FluentTheme
Represents a class which holds fluent theme info for SfSkinManager.
Implements
Namespace: Syncfusion.SfSkinManager
Assembly: Syncfusion.SfSkinManager.WPF.dll
Syntax
public class FluentTheme : Theme, IDisposable
Constructors
FluentTheme()
Initializes a new instance of FluentTheme which allows you to set the fluent theme.
Declaration
public FluentTheme()
FluentTheme(String, String[])
Initializes a new instance of FluentTheme which allows you to mention the required controls for which themes have to be applied and provides improved performance.
Declaration
public FluentTheme(string themeName, string[] controls)
Parameters
Type | Name | Description |
---|---|---|
System.String | themeName | The theme name for which theme will be applied for an application. |
System.String[] | controls | The list of controls for which themes have to be applied instead of applying for all controls in application. |
Examples
<Window.Resources>
<x:Array Type="sys:String" xmlns:sys="clr-namespace:System;assembly=mscorlib" x:Key="controlList">
<sys:String>ButtonAdv</sys:String>
</x:Array>
</Window.Resources>
<StackPanel syncfusion:SfSkinManager.Theme="{syncfusion:SkinManagerExtension ThemeName=FluentDark, Controls={StaticResource controlList}}">
<syncfusion:ButtonAdv Width="100" Grid.Row="0" Content="Testing1" Height="30" Margin="10"></syncfusion:ButtonAdv>
<syncfusion:TreeViewAdv Width="100" Grid.Row="2" Margin="10">
<syncfusion:TreeViewItemAdv Header="Testing3"/>
<syncfusion:TreeViewItemAdv Header="Testing4"/>
<syncfusion:TreeViewItemAdv Header="Testing5"/>
</syncfusion:TreeViewAdv>
</StackPanel>
string[] controls = new string[1] { nameof(ButtonAdv) };
SfSkinManager.SetTheme(this, new FluentTheme("FluentDark") { Controls = controls });
Properties
HoverEffectMode
Gets or sets the HoverEffectMode value to particular control where SfSkinManager will utilize to apply this hover effect settings in fluent theme for control and its child element in application.
Declaration
public HoverEffect HoverEffectMode { get; set; }
Property Value
Type | Description |
---|---|
HoverEffect | One of the HoverEffect enumeration that specifies the hover animation to be applied. The default value is BackgroundAndBorder. |
PressedEffectMode
Gets or sets the PressedEffectMode value to particular control where SfSkinManager will utilize to apply this pressed effect settings in fluent theme for control and its child element in application.
Declaration
public PressedEffect PressedEffectMode { get; set; }
Property Value
Type | Description |
---|---|
PressedEffect | One of the PressedEffect enumeration that specifies the pressed animation to be applied. The default value is Reveal. |
ShowAcrylicBackground
Gets or sets the
Declaration
public bool ShowAcrylicBackground { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The System.Boolean value to enable/disable acrylic background. The default value is false. |
Remarks
Applicable only for fluent theme and should be enabled only for window.
Acrylic blur background will be displayed only in Windows 10 and above OS versions.