MVMV Training combines in-depth written guidance with full-featured how-to code examples. MVVM Training is a Visual Studio 2010 Feature Extension and is part of the In the Box training series by Karl Shifflett.
Excellent MVVM training and guidance, there are so many misleading MVVM articles out there and Karl's articles are clear and concise. It would be nice if the samples were in VB.NET too, I've been looking at Ocean which seemed like a nice light framework, Prism seems too much although you don't have to use the whole framework, I think lot of people looking at the MVVM design pattern for the 1st time get caught up in the framework element.
Karl, Is the version of Ocean (V3) planned for 2010 going to be released or have you decided to leave Ocean as it is, I gather your involved in Prism now ?
Anyway, keep up the great work, MVVM is a nightmare TBH, I thought evaluating ORM's was a pain but MVVM has been driving me nuts :) although I recognised a while back that code behind with WPF for large scale LOB apps can become un-maintainable although I don't see why code that purely is for UI control extension (such as a Telerik carousel which requires code behind to get the behaviour you want) would ever need to be in the ViewModel.
I does not install. This is the log:
22.03.2011 15:15:02 - Er wird nach passenden Produkten gesucht...
22.03.2011 15:15:02 - Installiertes Produkt gefunden - Microsoft Visual Studio 2010 Professional
22.03.2011 15:15:02 - Die Erweiterung mit der ID InTheBox.MVVMTraining wird nicht für Microsoft Visual Studio 2010 Professional installiert.
22.03.2011 15:15:04 - Folgende Zielprodukte wurden ausgewählt...
22.03.2011 15:15:04 - Microsoft Visual Studio 2010 Professional
22.03.2011 15:15:04 -
22.03.2011 15:15:04 - Die Installation der Erweiterung für Microsoft Visual Studio 2010 Professional wurde gestartet...
22.03.2011 15:15:05 - Installationsfehler: System.IO.PathTooLongException: C:\Dokumente und Einstellungen\UserName\Lokale Einstellungen\Anwendungsdaten\Microsoft\VisualStudio\10.0\Extensions\Karl Shifflett\MVVM Training\1.2\P\In the Box\MVVMTraining.zip: Acme.Prism/interactionrequest/confirmationlocalmodalinteractiondialog.xaml.cs
at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.BeginInstall(IInstallableExtension installableExtension, Boolean perMachine, AsyncOperation asyncOp)
at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.InstallWorker(IInstallableExtension extension, Boolean perMachine, AsyncOperation asyncOp)
I fails because of an System.IO.PathTooLongException. Any idea to circumvent this problem?
Each person learns at their own pace. Reading the material is a few hours. But learning the concepts and then applying those concepts to your scenario is what takes longer. This training will help.
Sorry it took longer to reply, I've been sick the last 10 days.
This is great! Congrats, i'am eager for the In The Box Prism...
I have an issue when click a hyperlink, my default browser is Chrome (in windows and in VS), but the page opens in internet explorer. What can i do to open it in my default browser?
Thank you for reporting this.
What you are seeing is at least functionally correct.
The content in In the Box is being displayed in the Internet Explorer Browswer control. So, when a hyperlink is clicked inside the content, its navigating to another page.
One advantage of using this technique is that I can specify the TARGET property on the anchor tag. This prevents multiple browser windows from opening up after repeated clicks of internal hyperlinks.
I hope this explains at least why this is happening.
Thank you for the feedback and have a super day,
Thank you for the clarification, I think it would be worthwhile to correct the following line in the "In the box" node chapter:
"When a hyperlink to the Internet is clicked, the default browser will open and navigate to the target Url."
New to VS & .NET, but experienced with Java. Installed VS2010 Pro on XP vm at work; did the install tweaks for XP as instructed, did the install with no problems.
Started the video as a step-by-step intro, but when the project loads in VS, it gives 2 errors, both related to the file MainWindow.xaml as shown below. Hope you can help, and thanks for your time.
Error 1 Unable to load the metadata for assembly 'Acme.Entities'. This assembly may have been downloaded from the web. See http://go.microsoft.com/fwlink/?LinkId=179545. The following error was encountered during load: Could not load file or assembly 'Acme.Entities, Version=22.214.171.124, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Error 2 Unable to load the metadata for assembly 'Acme.Basic'. This assembly may have been downloaded from the web. See http://go.microsoft.com/fwlink/?LinkId=179545. The following error was encountered during load: Could not load file or assembly 'Acme.Basic' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
The in-the-box tool is awesome. Is there a way for me to develop my own lessons? I was thinking it would be a great tool for my company as a ramp-up as we bring on new devs. Is there any documentation on how to develop or plans to release?
Thank you for your kind remarks.
I used this tool:
There are links to docs and videos on this page. Basically you use Word to author the docs and use Instant Feature Builder or Feature Builder to create the Feature Extension.
Best to you,
I think the screenshot regarding the IntelliSense popup illustration is incorrect because it seems that the related explanations below do not match to the screenshot. Please correct me if i am wrong.
This page of the training illustrate a thought process.
When I look at the screenshot, I see, what is listed in the text below.
The text is not describing the screenshot, its describing how I think about the contents of the screenshot.
In Germany dates have the format d/m/Y. This leads to a couple of errors in the application, because when you use the datepicker and choose a date like 13.1.2010 then the application will highlight it as an invalid date. Since i am pretty new to WPF i don't even know where to fix this so that the validation understands the current cultures date format.
This is just my personal reaction... I find the space to view the training documentation somewhat limited on my laptop when it is displayed in panes inside VS.
I think I'd rather have it delivered in a conventional CHM file like we get with Prism. Then I could flip back and forth between a maxmized CHM reader and a maximized VS2010.
Good feedback. Agree the desktop experience is better with respect to screen space. However, you can make the reading window the same side as the code window and swithc back and forth and not loose the navigator functionality.
FYI: I have provided a .mht file for reading outside of VS. Goto my blog and check the downloads at the bottom.
After getting more accustomed to using the different panes of the "in-the-box" system tonight, I'm retracting my complaint about the space :). If I dock the "Guidance Browser" where I dock the source code files in the center of VS then it seems to be big enough, even on my laptop.
I think the "in-the-box" integration with VS is really genuinely interesting and innovative. Thanks for all the work on this.
I've just started to go through the material, but the content looks good. I'll give more feedback as I get more into it.
Ok, given your pointer, I found the download link for the written content as "one-big-MHT-file" (at the end of your 2010-Nov-07 blog post next to the "Skydrive" label). I think it's good to provide the content in both formats. It's nice to be able to quickly scroll around the standalone version in a full-size IE window (or maybe on an iPad/WP7 device).
Another suggestion. Since you already have the written content in HTML/MHT form, I think it would be good to expose that as HTML on the web somewhere. That way search engines will index it and people will start finding it in MVVM-related searches. You don't want that written content only hidden "in the box". But maybe you already are planning to expose it like that.
I realize the concepts are basically the same, but I was curious if you are planning a Silverlight version of the solution. I'm primarily interested in Silverlight. Having all the materials in SL form is more attractive to me personally than having to try to do the conversion(s) myself. Just curious.
This almost killed me. I did 90% of this at nights and weekends, one Sunday I did 23 hours straight.
That said, MVVM is implemented in WPF and Silvelight the same if you use the Blend behaviors.
Feedback taken, for my next In the Box, I'll be doing Prism. I'll be sure to have both WPF