AvaloniaUI / Avalonia.Xaml.Behaviors

Port of Windows UWP Xaml Behaviors for Avalonia Xaml.
MIT License
385 stars 46 forks source link

Ignore exceptions from type coercion in value comparison #126

Closed graealex closed 1 year ago

graealex commented 1 year ago

It's a simple change to avoid exceptions getting thrown from coercion of complex types from string back to the object to completely break the comparison. I have the feeling that this method needs a bit more work, as calling ToString() and then converting it back into a type can fail for many types, even the less complex ones.

graealex commented 1 year ago

@dotnet-policy-service agree company="Milano Engineering GmbH"