Version

GetStyleClassString(String,String) Method

Convert name of styles to the name of CSS defined in resource files. Designed to be used by rendering logic of control without any Style.
Syntax
'Declaration
 
Public Overloads Function GetStyleClassString( _
   ByVal localStyle As String, _
   ByVal sharedStyle As String _
) As String
public string GetStyleClassString( 
   string localStyle,
   string sharedStyle
)

Parameters

localStyle
Name of local style used by control. It is better to be a constant defined in CssNames which starts with prefix "YourControl_"
sharedStyle
Name of shared style. It should be a constant defined in CssNames which starts with prefix "Shared_"

Return Value

CSS class name defined in resource files.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, 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