|
-
Mar 31st, 2015, 01:02 PM
#1
Thread Starter
Frenzied Member
Question about Prism and MVVM
Hi!
I am currently developing a WPF prims application, and there are some issues we haven't sorted out. Hopefully there is someone here that can give some tips.
1) We have a view composed like this
* Region Workspace
- View Editor
--- View chart
--- View statuslist
--- view toolbar
--- view editor
As you can see the editor view consist of multiple child views, and each of these child views has a viewmodel that is declared in the ViewEditorViewModel class. I also for each view has a public sub new(vm as IViewModel) that allows unity to inject a viewmodel to respective view. But that approach is rather pointless in my view composition, since I do a bind to the ViewEditor for each of the child user controls data contexts... Do we do things wrong?
2) We have some user controls + Business logic that is used in multiple prism modules. We should we store this stuff?
a) In a module and let other modules reference it
b) In a common.ui module and inject it? How do we inject user controls??
c) Put it in a standard class library common.ui and just reference it.
Thanks
Henrik
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|