Hi,
i´m testing the xamNumericEditor. I´m using MVVM. I will bind the value-property of xamNumericEdior to a property with value int32=4711 in my viewmodel. When the app is running and i delete the value in the view, in my viewmodel, the last value int32=4 is stored. Is that a bug?
best regards from Germany
Christian
If you delete the value of the XamNumericEditor, it will return null and will try to save that in the underlying object (if you have set the binding mode to TwoWay). Is your property int? or int ? In the binding, have you set the UpdateSourceTrigger property ? I tried this and when I delete the value of the editor, null is the result. If that is not the case, can you please provide a sample that reproduces the issue?
Hi Alex,
our underlying datatype is int (not nullable). Binding mode is TwoWay.We cannot use nullable types because our values simply must never be Null.
In case of an empty editor the underlying object should be set to it's default value (e.g. Numeric types should be 0).
Compare this behavior with the XamMaskedEditor which is bound to a string. The underlying string will be "" (String.Empty) if the editor is empty (not Null).