wpftoolkit
wpftoolkit copied to clipboard
FormatString handling in numeric updowns
Most of the code assumes that FormatString is not null.
If FormatString is null it starts throwing NullReferenceExceptions.
Null value can be assigned if the bound property returns null.
I think, it should be handled in OnCoerceFormatString.
As an example:
private static object OnCoerceFormatString(DependencyObject d, object baseValue)
{
return baseValue ?? "";
}
Hi,
Thank you for reporting this. It will be fixed in v3.8.
I think, this issue can be closed as it's already released at part of v3.8.