Xceed Toolkit Plus for WPF v4.6 Documentation
CreateResources Method (ThemeMaterialCommonResources)


Xceed.Wpf.Themes.MaterialDesign Assembly > Xceed.Wpf.Themes.MaterialDesign Namespace > ThemeMaterialCommonResources Class : CreateResources Method
Syntax
'Declaration
 
Public Shared Function CreateResources( _
   Optional ByVal darkMode As Boolean, _
   Optional ByVal primaryColor As MaterialDesignColor, _
   Optional ByVal accentColor As MaterialDesignColor _
) As ResourceDictionary
'Usage
 
Dim darkMode As Boolean
Dim primaryColor As MaterialDesignColor
Dim accentColor As MaterialDesignColor
Dim value As ResourceDictionary
 
value = ThemeMaterialCommonResources.CreateResources(darkMode, primaryColor, accentColor)
public static ResourceDictionary CreateResources( 
   bool darkMode,
   MaterialDesignColor primaryColor,
   MaterialDesignColor accentColor
)

Parameters

darkMode
primaryColor
accentColor
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ThemeMaterialCommonResources Class
ThemeMaterialCommonResources Members