Class SkinManagerExtension
A markup extension that returns Theme for themename.
Inheritance
Namespace: Syncfusion.SfSkinManager
Assembly: Syncfusion.SfSkinManager.WPF.dll
Syntax
public sealed class SkinManagerExtension : MarkupExtension
Constructors
SkinManagerExtension()
Declaration
public SkinManagerExtension()
Properties
Controls
Gets or sets the list of controls for which themes have to be applied instead of applying for all controls in application to provide improved performance.
Declaration
public string[] Controls { get; set; }
Property Value
Type |
---|
System.String[] |
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=MaterialDark, 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>
FluentHoverEffectMode
Gets or sets the
Declaration
public HoverEffect FluentHoverEffectMode { 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. |
FluentPressedEffectMode
Gets or sets the
Declaration
public PressedEffect FluentPressedEffectMode { 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. |
ThemeName
Gets or sets the ThemeName value to particular control where SfSkinManager will utilize to apply respective themes for control and its child element.
Declaration
public string ThemeName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The System.String Theme name. The default value is null. |
Remarks
We can provide theme name in this format: MaterialDark and we can also provide custom theme name in this format: CustomTheme1;BaseThemeName where CustomTheme1 denotes the custom theme name and BaseThemeName denotes the theme name from which it is derived. For example CustomTheme1;MaterialDark.
Methods
ProvideValue(IServiceProvider)
Declaration
public override object ProvideValue(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | serviceProvider |
Returns
Type |
---|
System.Object |