Dictionaries for validation form combo boxes

The behavior of a dictionary when used in a combobox differs slightly from the dictionary behavior elsewhere in the product.

If a dictionary has both Word and a Replacement Text entries per row, only the Replacement Text value is saved to the XDocument. As a result, if there are any duplicate Replacement Text values, those entries are ignored when the combobox list is displayed to the user.

For example, a dictionary contains several month formats, each with a number to represent their month:


Since the Replacement Text value is the only thing written to the XDocument, only the first instance of each numerical month is displayed to the user. This is because it is impossible to determine the Word that was selected for each repeated Replacement Text value, so duplicates are eliminated. If a user selects "July|07" from the list during validation, only "07" is written to the XDocument.