Jul 16, 2009 at 10:25 PM
Edited Jul 16, 2009 at 11:01 PM
Starting to understand at least the big picture of this framework and the patterns used as MVVM i still feel that i
miss "the second half" of a complete application, I can create views "statically" but what about when we are adding requirements a;
"responsive applications" (threading / long operations / asynch)
"Notify the user what the application are doing" (state / icons or progress bars / task dialogs).
Most of the tutorials and articles i find never reach this far, they handle often much more specific UI problems and again never reach this far down the pipe.
Is it only me who are wondering about things like:
How do i open a new window from my Commmand / Viewmodel?
How would i do this window or dialog modal to the opening window (I dont have any ref to the view in the viewmodel, correct??)
What is the best mechanism to report progress from a operation in "the service layer", e.g. imagine an operation that:
1. Uploads a file via webdav a file to a server.
(I want to report back the upload progress to the user)
2. Writes some metadata about the the file to a database via a WCF service.
In the short example above, would it be best to execute the two sub operations from an ICommand, or should the complete operation be "encapsulated" in
a method in the service layer?
Is it only me who cant access the apps database directly but instead need to access data via a web service layer / remote (which gives problems compared to direct db access (client / server))?
Again, most examples on the web i find just take for granted that everyone in the world have direct access to the database as far as i can see.
Perhaps the reference implemenation are showing solutions to problems above and i just can find it. If so please tell me!!!
UPDATE: I just found out that the ref app are having something called RegionPopupBehaviors
which seems to be able to open a window. Fanatstic!!!! But....shouldnt the documentation be extended to include information about such a common need, how to open a window in Prism, or do i really need to surf the web for such a problem?
You could argument that my wonderings here are not WPF specific at all, and thats why it isnt dealt with to much. To me..... i stil think i can find arguments why
an article about:
WPF + MVVM + Open modal Windows + ICommand + Threading + "Reporting progress state back to the end user" etc....
would be VALUABLE and of course .... WPF realated!
My worry is that a framework that is so nice as Prism want get get the audience / usage as it deserves, not all people are working in the R&D department and have
limited time to solve the problems (which frameworks should be the solution to). I dont understand when the people behind frameworks have spent so much time being creative and producing
great things, to then not put as much energy and effort to tell the people what you can do with it, to promote it 100%. That way I think are risking the overall success of the framework to a great extent.
So.... is it only me who's having hard time to find these "end to end" examples on the web or do they exists? Are there any WPF gurus like the "WPF Disciples" dealing with these issues?
Finally, i do understand if this thread can be interpreted as a bit negative to Prism and perhaps to the people behind it. But please, try to read between the lines and think of what im trying to write here.
Basicly im justin calling for an extension to articles and frameworks, to handle and show the real potential of a good framework / technology for less inteligent people as me, how about a Prism for dummies perhaps :-)