Trying to use skin without use of any xaml

Hello,

I'm trying to use the SkinManager to style my components, but when I set a theme nothing changes.

The window in which I try to set the theme gets created programmatically.

Is it possible to do that?


1 Reply 1 reply marked as answer

KS Kayalvizhi Sivashanmugam Syncfusion Team September 26, 2022 12:29 PM UTC

Hi Hannes,


Themes will be applied to both Syncfusion and Framework controls by using setTheme() or Theme attached property of the SfSkinManager.


C#

SfSkinManager.SetTheme(this, new Theme("MaterialDark"));



XAML

xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
xmlns:syncfusionskin="clr-namespace:Syncfusion.SfSkinManager;assembly=Syncfusion.SfSkinManager.WPF"
syncfusionskin:SfSkinManager.Theme="{syncfusionskin:SkinManagerExtension ThemeName=FluentLight}"


For more details refer to the below link:
https://help.syncfusion.com/wpf/themes/skin-manager#set-theme


Regards,
Kayalvizhi S


Marked as answer
Loader.
Up arrow icon