yshige / twaindotnet

Automatically exported from code.google.com/p/twaindotnet
0 stars 0 forks source link

WPF Demo App not MVVM friendly #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The twain code in the WPF app demo is in the Main Window code behind.

Is there any way to move the twain logic in a view model knowing that a twain 
object needs a WpfWindowMessageHook with the window reference?

Is it compulsory to have a reference to the application window?
Thanks

Original issue reported on code.google.com by fayez.na...@gmail.com on 27 Jun 2012 at 9:13

GoogleCodeExporter commented 9 years ago
I succeded moving the code in a view model.
You can take a reference to the main window to create a twain object by calling:
App.Current.MainWindow
Thank you anyway!

Original comment by fayez.na...@gmail.com on 28 Jun 2012 at 8:26