You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a function that accepts the app’s main window (to be created) and configures and starts the Elmish loop for the window with your init, update and bindings:
open Elmish.WPF
let main window =
Program.mkSimpleWpf init update bindings
|> Program.runElmishLoop window
In the code above, Program.runElmishLoop will set the window’s DataContext to the specified bindings and start the Elmish dispatch loop for the window.
As far as I can tell, Program.mkSimpleWpf no longer exists.
System.InvalidOperationException: Application is already running the Dispatcher.
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at Elmish.WPF.WpfProgram.runWindow[a,b,c](Window window, WpfProgram`3 program) in D:\a\Elmish.WPF\Elmish.WPF\src\Elmish.WPF\WpfProgram.fs:line 248
I'll keep troubleshooting, but my main point is that the right way isn't obvious, at least to me.
Additional Information
Elmish.WPF version: 4.0.0-beta-50
Target framework version: net7.0-windows
The text was updated successfully, but these errors were encountered:
High-level description
From README.md:
As far as I can tell,
Program.mkSimpleWpf
no longer exists.Here's my current best try:
This throws the following exception:
I'll keep troubleshooting, but my main point is that the right way isn't obvious, at least to me.
Additional Information
Elmish.WPF version: 4.0.0-beta-50
Target framework version: net7.0-windows
The text was updated successfully, but these errors were encountered: