Table of Contents

Windows Forms

Ensure that you install ReactiveUI.WinForms into your application.

Please ensure that you are targeting at least windows10.0.17763.0

i.e <TargetFramework>net8.0-windows10.0.17763.0</TargetFramework> in your csproj file.

Your viewmodels should inherit from ReactiveObject

Use IActivatableViewModel and WhenActivated for lifecycle

Keep references to your subscriptions

Use disposables to manage lifetime, scope and resources:

Don't use eventhandlers, use the extension methods shipped in ReactiveMarbles.ObservableEvents.SourceGenerator instead

Use your normal WinForms concepts that you would usually use in WinForms development. There's also some extension methods which will make your life easier