Hey,
I want to set up a value converter that will convert something like the string "1k" in the numeric editor to the int 1000 in the bound property.
I was curious if you have any publicly exposed value converters that I could compose? Then I could convert the string "1k" to the string "1000" and then pass the string "1000" to your value converter. This way I don't have to duplicate the actual conversion logic.
Thanks
The mask is not going to allow you to type in 1k - the entry is restricted based on the type of mask character the caret is positioned at - so I assume the information is coming that way from your underlying data - i.e. the property to which you are binding this? If so then perhaps you could just set the Converter on the Binding you are using to bind the Value of the editor to the underlying object property and perform the conversion that. With regards to your specific question about how to get to the default converter, its not public but there is a protected property that returns the default converter it will use.
Sorry for the delayed response.
In the online help for the xam numeric editor, it describes that possibility of using a custom value converter to do something like "1k" to 1000. From what you've said, do I also need to do something with the mask property so that k and m can be typed in (right now I'm using double:-10.4)?
I want to implement this custom value converter, but if possible I would like to reuse the default converter in my code. Maybe something like, getting a string from the textbox my value converter removes and stores a k or m at the end then passes the string in to the default converter, gets a number out and multiples it by 1000 if there was a k, then returns the result. If it's not easy to get to the default value converter class then I could try to duplicate what it does.