Is there a way I conditionally format XamNumeric Editor to accept decimal places.
for example in most cases i would not want it to accept decimal cases, however in certain cases it should accept decimal places.
Hello Raul,
I have been looking into your description and created a sample project where the mask property is changed at runtime. The default mask does not contain a floating point. On every key stroke it is checked whether a floating point is entered and the mask is modified if needed so that the editor displays double values.
I am just checking if my last reply was helpful for you.
If you require any further assistance, please do not hesitate to ask.
Is Mask a dependency property ?, can i bind it to a string property in my view model.
-Raul
I could not get this to work if i create a binding for the Mask Property. I cannot use the code behind logic provided. My Business logic is all present in my View Model
I have modified the sample project I have attached before so the Mask property is bound to the CustomMask property of the data source class. If the custom condition for changing the mask is met the Mask property is updated with the new value. As the binding mode is TwoMode the CustomMask value in the data source is updated too. Please let me know if you need additional assistance on the matter.