Class QmlNaming
Normalizes .NET and QML identifiers to the casing conventions used by QML.
public static class QmlNaming
- Inheritance
-
QmlNaming
- Inherited Members
Methods
NormalizeQmlTypeName(string)
Normalizes a QML type name to the PascalCase form required for QML object types.
For example, "mainWindow" becomes "MainWindow".
public static string NormalizeQmlTypeName(this string text)
Parameters
textstring
Returns
Remarks
QML requires type names to begin with an upper-case letter. See Naming Custom QML Object Types.
ToDotNetPropertyName(string)
Converts a QML-style property or role name such as "displayName" to the Pascal
case typically used by .NET property names, such as "DisplayName".
public static string ToDotNetPropertyName(this string text)
Parameters
textstring
Returns
ToQmlPropertyName(string)
Converts a .NET-style property name such as "DisplayName" to the lower-camel
form expected by QML property and role names, such as "displayName".
public static string ToQmlPropertyName(this string text)
Parameters
textstring
Returns
Remarks
QML requires property names to begin with a lower-case letter and contain only letters, numbers and underscores. See QML Object Attributes.