How TryConvert works

TryConvert function takes four arguments. The first one is value we are trying to convert, the second one is type to which we are trying to convert that value. conversionHint is like a converter parameter, and result is where we need to store the conversion result. TryConvert function should return true if conversion succeeds and false if conversion fails.

Registration

Usage

For globally registered converters, usage is automatic. When a binding is created, the converter(s) with the highest affinity are chosen from those registered with Splat. Optionally, you can provide a specific converter to override what the default would have been for either VM to View or View to VM. In this case you don't need to register a converter: