wpftoolkit icon indicating copy to clipboard operation
wpftoolkit copied to clipboard

FormatString handling in numeric updowns

Open omariom opened this issue 7 years ago • 2 comments

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 ?? "";
}

omariom avatar Aug 23 '18 09:08 omariom

Hi,

Thank you for reporting this. It will be fixed in v3.8.

XceedBoucherS avatar Aug 24 '18 19:08 XceedBoucherS

I think, this issue can be closed as it's already released at part of v3.8.

dhilmathy avatar Jun 13 '23 10:06 dhilmathy