Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Approach 3 : Validate a Property using Exceptions inside setters -- Just crashes in visual studio and does not display error on UI #118

Open
ARogala opened this issue Jan 17, 2025 · 2 comments

Comments

@ARogala
Copy link

ARogala commented Jan 17, 2025

Describe the bug

On Approach 3 in the ValidationSample throwing exceptions in the setter just causes Visual Studio 2022 to stop execution of the app as normal.
No error is display on the MainWindow of the app

Sample affected

https://github.com/AvaloniaUI/Avalonia.Samples/tree/main/src/Avalonia.Samples/MVVM/ValidationSample

Screenshots

Image

Additional context

Not sure if this a bug or not. Maybe its just a setting in Visual Studio. But the sample does not work (at least for me) as displayed in the documentation.

@ARogala ARogala added the bug Something isn't working label Jan 17, 2025
@timunie
Copy link
Collaborator

timunie commented Jan 17, 2025

it's by design. In some IDE settings you need to press mute and continue (the green |> ). It breaks before we can handle it.

I'll maybe add a note later to that sample, so keep the ticket open.

@maxkatz6 maxkatz6 removed the bug Something isn't working label Jan 18, 2025
@ARogala
Copy link
Author

ARogala commented Jan 20, 2025

ok thank you for the reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants