Closed DkmS1953 closed 6 months ago
Your ViewModel property type needs to match the type of Value
from NumberBox, which is double
. The binding system won't do that conversion for you.
Is this supposed to be a joke? All right.
If you clear it, it makes your value null. If your property isn't nullable, that throws if you have compiled bindings enabled. ReflectionBinding can handle it. This is by design.
Describe the bug A clear and concise description of what the bug is and any steps to reproduce it. Sample code or a minimal repro is helpful.
Desktop/Platform (please complete the following information):
Additional context Controls without bindings react normally - after clearing they show the placeholder text.
There is a test project in the attachment. NumberBox.MvvM.zip