Version

Convert Method (StringWithoutMnemonicsConverter)

Converts a given System.String value to a string that removes '_' characters which would normally be used to identify that the character following be rendered as a mnemonic.
Syntax
'Declaration
 
Public Function Convert( _
   ByVal value As Object, _
   ByVal targetType As Type, _
   ByVal parameter As Object, _
   ByVal culture As CultureInfo _
) As Object
public object Convert( 
   object value,
   Type targetType,
   object parameter,
   CultureInfo culture
)

Parameters

value
A string whose text is to be cleared of unescaped '_' characters. Any instances where 2 consecutive '_' exist in the string are replaced with a single '_' character.
targetType
The type to which the converter must be convert the value. This parameter is not used. A String value is always returned
parameter
This parameter is not used.
culture
The culture to use when calling the Infragistics.Windows.Utilities.StripMnemonics.

Return Value

System.Windows.DependencyProperty.UnsetValue if the parameters do not match the required information. Otherwise a string with any '_' characters removed. If the string contains a sequence of two consecutive '_' characters then a single '_' is left in the string.
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