This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, I'm using a NumericTextBox (WPFElements 1.0), inside a ListView, using a converter to display my value as percentage. My NumericTextBox is declared as follow : <ms:NumericTextBox Value="{Binding Path=DataValue, Converter={StaticResource ValueAsPercentageConverter}, It doesn't work, and displays a value of 0.0 for each entry. Now the weird thing is if I remove DecimalPlaces, Minimum & Maximum, or if I don't use a converter, everything is fine. I've written a simple example to illustrate my problem, attached to this post. Is there something I do wrong ?? Cheers Eric
|
|
|
Thanks for letting us know about this issue and for the repro case. It seems we had a bug where setting the DecimalPlaces, Maximum or Minimum was setting some internal state earlier than it should have been. For some reason this caused WPF not to deliver the results of the value converter (though, as you noted, it would still deliver "raw" values if the converter was removed; I'm not sure why it was handling converted values differently). I've committed a fix for this, and it will be included in nightly builds dated 29 Jan 2010 and above, available from about 1500 GMT. Thanks again for reporting this issue and please let us know if you still see problems. |
|
|
Thanks for the fast reply/fix :)
|
|