Creating a Custom Format

You can also create your own custom formats and add them to the Resource Picker list. The new custom formats must be placed under the Presentation Resources special folder.

A sample custom format is as follows:

format_myformat1 = 000.000
  format_myformat2 = \u00A4#,#0.0;[\u00A4#,##0.0]

’\u00A4’ is the Unicode value for the ¤ currency symbol.

Procedure

  1. In the Project Explorer, go to the context menu of the Presentation Resources folder and click New > File.
  2. On the New File dialog box, type the file name and use the extension .properties. The builder creates matching <name>.properties.json and <name>.locales.json files in the same folder.
  3. The newly-created properties file is automatically opened in the Properties File Editor for editing. Edit the file to add custom number formats.