WPF ValueConverter – Standard return for unconvertible value

According to MSDN – IValueConverter:

The data binding engine does not catch exceptions that are thrown by a
user-supplied converter. Any exception that is thrown by the Convert
method, or any uncaught exceptions that are thrown by methods that the
Convert method calls, are treated as run-time errors. Handle
anticipated problems by returning DependencyProperty.UnsetValue.

The key line is Handle anticipated problems by returning DependencyProperty.UnsetValue.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)