Skip to content

rallets/winforms-reactiveui-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

winforms-reactiveui-demo

Winforms .net Core 6 + ReactiveUI and DynamicData

Goals

The goal of this demo is to show how to deal with the most common scenarios for a Desktop application. The application implements:

  • Dependency injection with Splat, views, and services.
  • How to use a main entry-point with Routing and UserControls.
  • How to open a new Form (outside the main routing).
  • Routing between screens/views.
  • Binding data and execute commands between View and ViewModel.
  • Bind to reactive properties (as calculated fields).
  • How to bind data to a ListBox via DataSource. More info on DataSource.
  • How to deal with UI events (via ReactiveMarbles.ObservableEvents.SourceGenerator). See the note below.
  • How to use Interactions to show Modal form with or without DialogResult.
  • How to subsribe to UI changes like TextBox and ComboBox with sort info, and refresh the data in the UI.
  • How to use Dynamic Data and deal with Collections. See the note below.
  • etc.

Note related to RxUi WinForms events

RxUI WinForms doesn't support Bind yet. So there is a temporary solution to support events that don't implement INotifyPropertyChanged.

Note related to Dynamin Data

The demo is using Dynamic Data, but be carefull that WinWorms supports only binding to BindingList<T>. More info on BindingList.

Routing and Views structure

  graph TD;
      A[Shell :: IScreen * Form]-->|Route|B[ItemsView :: ItemsViewModel * UC];
      A-->|Route|C[ItemsDDView :: ItemsDDViewModel * UC];
      B-->|Interaction|D[AskConfirmation * MessageBox];
      D-->|Yes > Modal Form|E[ItemTagsView :: ItemTagsViewModel * Form];
Loading

About

Winforms .net Core + ReactiveUI and DynamicData

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages