Partager via


LocHelper.ConvertToWpfString Method (String)

 

Converts input text into a format that can be used in Windows Presentation Foundation (WPF) resources.

Namespace:   Microsoft.WindowsServerSolutions.Common
Assembly:  AdminCommon (in AdminCommon.dll)

Syntax

public static string ConvertToWpfString(
    string text
)
public:
static String^ ConvertToWpfString(
    String^ text
)
Public Shared Function ConvertToWpfString (
    text As String
) As String

Parameters

Return Value

Type: System.String

A System.String that is compatible with WPF resources.

Remarks

Localization tools do not directly support WPF resources, so resources must be stored in .resx (.NET XML resource template) file format. Localization tools also do not support an underscore (_) as a hotkey indicator; they require an ampersand (&). The solution is to use Windows hotkey indicators (such as an ampersand), and then call this method to convert the string into WPF resource format.

See Also

LocHelper Class
Microsoft.WindowsServerSolutions.Common Namespace

Return to top