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.
The installation happened successfully. But when I try to open VS2010 I get the error:
"Feature Builder Runtime - The environment variable LocalAppData must be manually configured for Win XP...."
and yes, mine is a Win XP machine. So how do I configure it?
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?
Fired up a new in the box project but the initial build failed with the following errors...
Am I missing a pre-requisite or do i need to update my copy if prism which i downloaded and installed with the intention of learning but have done absolutely zip with!!!
Error 3 The tag 'Interaction.Triggers' does not exist in XML namespace 'http://schemas.microsoft.com/expression/2010/interactivity'. Line 38 Position 26. C:\WPF\MVVMTraining1\MVVMTraining1\Acme Common\Acme.Prism\InteractionRequest\ConfirmationLocalModalInteractionDialog.xaml 38 26 Acme.Prism
Error 4 The tag 'Interaction.Triggers' does not exist in XML namespace 'http://schemas.microsoft.com/expression/2010/interactivity'. Line 37 Position 22. C:\WPF\MVVMTraining1\MVVMTraining1\Acme Common\Acme.Prism\InteractionRequest\NotificationLocalModalInteractionDialog.xaml 37 22 Acme.Prism
Error 9 The tag 'Interaction.Triggers' does not exist in XML namespace 'http://schemas.microsoft.com/expression/2010/interactivity'. Line 27 Position 10. C:\WPF\MVVMTraining1\MVVMTraining1\04 MVVM Scenarios\Acme.MVVM.Scenarios\Views\DialogInteractionRequestView.xaml 27 10 Acme.MVVM.Scenarios
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=18.104.22.168, 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)