Version

GetNonNeutralCulture(IFrameworkInputElement) Method

Returns a specific, i.e. non-neutral, culture that can be used to format strings.
Syntax
'Declaration
 
Public Overloads Shared Function GetNonNeutralCulture( _
   ByVal element As IFrameworkInputElement _
) As CultureInfo
public static CultureInfo GetNonNeutralCulture( 
   IFrameworkInputElement element
)

Parameters

element
Either a FrameworkElement or a FrameworkContentElement

Return Value

A specific culture that can be used to format strings, dates, etc.
Exceptions
ExceptionDescription
System.ArgumentExceptionIf element is not a FrameworkElement or FrameworkContentElement.
Requirements

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