Should the converter throw an exception?

Today I encountered an error when the application starts throwing a few exceptions (several messages). Application uses DispatcherUnhandledException.

During the research, I found that the converter used to format the date and time in the dataGrid throws a FormatException if the parameter in the converter is NULL.

Is it possible in any case to exclude an exception from the converter?

+5
source share
1 answer

According to MSDN , no:

, . , Convert , , , . , DependencyProperty.UnsetValue.

NotSupportedException, Convert ConvertBack.

+3

All Articles