feature: add a ReactiveForm<TViewModel> base class to ReactiveUI.Winforms

Open Beginner friendly
#4,588 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp
Domain
desktop

Research direction

Read src/ReactiveUI.Winforms and compare ReactiveUserControl<TViewModel> with the existing WinForms Form setup. Add a ReactiveForm<TViewModel> base class with the same IViewFor<TViewModel> implementation and ViewModel property. Done when a form can inherit from it and satisfy the expected view interface.

Written by the indexing model from the issue text.

Description

In ReactiveUI.Winforms a Form can only be a view by implementing IViewFor<TViewModel> by hand. This was raised in discussion #3420.

Evidence: src/ReactiveUI.Winforms has ReactiveUserControl<TViewModel> and ReactiveUserControlNonGeneric, which implement IViewFor<TViewModel> and expose a ViewModel property. There is no equivalent base class for Form, so every form needs its own ViewModel property and the two IViewFor members.

Expected: a ReactiveForm<TViewModel> base class that matches ReactiveUserControl<TViewModel>, so a form becomes a view by inheriting from it.

Dominant language
C#
Stars
8.6k
Forks
1.1k
Avg merge
17h 31m
Merged PRs (30d)
22

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from reactiveui/ReactiveUI

All issues in reactiveui/ReactiveUI

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.