I know how to do this:
- Find and load plugin assemblies at runtime.
- Instantiate instances of plugins, including XAML-based views.
- Place the XAML-based view on the screen.
I think I can even update msg model
from my application's update to the plugins' updates.
What I'm missing is how to connect my runtime-instantiated plugins into the Elmish.WPF bindings.
I am currently calling the following in main, of course:
Program.mkProgram MainWindow.init MainWindow.update MainWindow.bindings
|> Program.runWindow (MainWindowView())
My MainWindow.init is creating a separate thread that successfully initializes the views and adds them to the display.
How do I add new bindings at runtime?