Note that there are some explanatory texts on larger screens.

plurals
  1. USJason Ridge
    primarykey
    data
    text
    plurals
    1. COThanks alot for the interest. At the moment i am changing the value to a valid value then changing it back in code, as this seems to work, but I hate it cause its messy. Anyway I do have a work around it was more of a "why is this working this way" kind of thing. I'll give the `what == null` thing a try. Again thanks for trying, you are the only one who has in almost a month since this was posted.
      singulars
    2. COI want to make a clear button on the view model that resets the values back to their original state. Some of these "DecimalTextboxes" will have an invalid value, and the property they are bound to will have a value of 0. If I were to reset the values of the properties inside the viewmodel I would set them to 0, but the textbox inside the "DecimalTextBox" control will still display the invalid value because the property it is bound to is not changing. Also (for another very complex situation I feel is out of scope) the textboxes are initialized with errors already and I want to get rid of them.
      singulars
    3. COYea ok but the thing is in my real project im using MVVM so I can't access the value of the textbox. The sample shows how I can't do it through the code by changing the property. In reality this thing is a control without that button, and I try to set the text back in a viewmodel by using the property to which the control is bound. The textbox is inside the control so I have no direct access to it. I suppose I could expose a method to change it back, but I'm not sure if I like that idea.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload