AvaloniaUI / avalonia-docs

https://docs.avaloniaui.net/docs/welcome
64 stars 211 forks source link

Add missing info about .UseReactiveUI() call inside BuildAvaloniaApp() #556

Closed MrClan closed 1 month ago

MrClan commented 1 month ago

Includes the essential step of adding .UseReactiveUI when utilizing Reactive features, as outlined in the documentation. Omitting this call results in a runtime exception, which may cause confusion for new users.

Exception encountered: System.ArgumentException: Unable to detect activation/deactivation of Project1.Views.MainWindow; implementing IActivationForViewFetcher may be required."

timunie commented 1 month ago

@MrClan just to make it clear, I didn't want to reject your modification. Instead I wanted to just convert it into a TIP block as it may or may not be a needed step.

https://docs.asciidoctor.org/asciidoc/latest/syntax-quick-reference/#admonitions