WpfExtendedToolkit icon indicating copy to clipboard operation
WpfExtendedToolkit copied to clipboard

TimeSpanUpDown exeption on invalid keyboard input

Open chrizzz86 opened this issue 3 years ago • 0 comments

Hi, I faced an issue when I enter invalid TimeSpan values on TimeSpanUpDown control. E.g. exceptions occur when I remove one of the separator colon (":") or if I enter values greater than allowed (ArgumentOutOfRangeException). As there is no catch block to handle such error cases the exception occurs also on my application as unhandled exception.

I attached the changed TimeSpanUpDown.cs file where I simply added a try catch block.

TimeSpanUpDown.zip

chrizzz86 avatar Apr 16 '21 05:04 chrizzz86