Developing a Windows Store Business App using C# and Prism with MVVM

You will learn how to create Windows Store business apps that implement standard Windows features, the Model-View-ViewModel pattern (MVVM) with life cycle management, navigation, and validation. You will learn how to unit test, localize, and make your app accessible.

C# (7.6 MB)
 
 
 
 
 
4.6 Star
(13)
27,168 times
Add to favorites
8/23/2014
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • 555-555-0199@example.com
    1 Posts | Last post October 13, 2017
    • 555-555-0199@example.com
  • Does anyone actually test this on a fresh PC?
    1 Posts | Last post July 19, 2015
    • Seriously, what is this? I download the sample, press "build solution" and are immediately greeted by a whoppin' 23 failures. 21 of them I can resolve myself by inserting some using-statements, two resist because you get stuff like this:
      
      Error	1	'Microsoft.Practices.Prism.Mvvm.ViewModelLocator' does not contain a definition for 'SetDefaultViewTypeToViewModelTypeResolver'	C:\Users\xxx\Documents\Visual Studio 2013\Projects\AdventureShopper\ReferenceImplementation\AdventureWorks.Shopper\App.xaml.cs	127	30	AdventureWorks.Shopper
      
      Good work! Sample code I have to fix in order to get it to work is not really good advertisment.
  • Build Failed
    4 Posts | Last post July 08, 2015
    • Hi,
      
      I downloaded the solution, tried the steps 
      
      "Open the csproj file in notepad and near the bottom remove the references to the nuget.targets and save this will then allow you to open the projects"
      
      But I still get the errors below:
      
      Error	2	MakePRI: root node not found.	C:\Users\Test\Downloads\Developing a Windows Store Business App using C%23 and Prism with MVVM\C#\Prism.StoreApps\Strings\en-US\Resources.resw	Microsoft.Practices.Prism.StoreApps
      
      Error	1	Processing Resources with error: Unspecified error	C:\Users\Test\Downloads\Developing a Windows Store Business App using C%23 and Prism with MVVM\C#\Prism.StoreApps\MakePri	Microsoft.Practices.Prism.StoreApps
      
      Error	3	The project file "C:\Users\Test\Downloads\Developing a Windows Store Business App using C# and Prism with MVVM\C#\.nuget\NuGet.targets" was not found.	AdventureWorks.UILogic
      
      Error	4	The project file "C:\Users\Test\Downloads\Developing a Windows Store Business App using C# and Prism with MVVM\C#\.nuget\NuGet.targets" was not found.	AdventureWorks.WebServices
      
      Error	5	The project file "C:\Users\Test\Downloads\Developing a Windows Store Business App using C# and Prism with MVVM\C#\.nuget\NuGet.targets" was not found.	AdventureWorks.Shopper
      
      Hope someone can help me! Thank you!
    • Yep anyone else get this to work at all?!
    • Nope, I can't get it to build either.
    • Finally got it to work... 
      
      1) I don't care about tests, so I just removed the test project from the project to reduce the errors to just a couple.
      2) Go to Micorosft.Practices.Prism.StoreApps/Strings/en-US/ and set the 'Copy to Output Directory' setting to 'Copy Always'
      3) At this point I could get the project to build, but I couldn't run it in debug. Apparently there was a build version/order issue. I fixed this by cleaning the projects, then rebuilding them, then cleaning the solution and rebuilding it.
      
      I feel this was a lot harder than it should have been...
  • 3229 errors in 136 files
    1 Posts | Last post March 03, 2015
    • I just extracted the solution in VS 2013 update 4 on my Windows 8.1 Pro machine, tried running the NuGet restore and it didn't work.  Does anyone from the PnP team have any insight on how to get this app to build?
      
      I assume this is the latest build, March 2, 2015.
  • Performance concern in using EventAggregator
    1 Posts | Last post January 20, 2015
    • 
      Will there be a performance lag if i use Prism.PubSubEvents's Event Aggregator instead of directly using events ?
      I know decoupling and code maintainbility is the advantage of using Event Aggregator/Event Broker pattern but will performance be same ?
      
      cheers,
      Saurav
  • How to open and run this sample in VS 2013?
    2 Posts | Last post February 28, 2014
    • My IDE is VS express 2013 for windows. I download this prism sample and open AdventureWorksShopper.sln, it shows following error:
      Unsupported.This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them.
      
      it also shows error "the edition of visual studio only support windows store apps". 
      
      I feel frustrated. Can you tell me how to run this sample in VS2013? thanks.
      
    • There is a comment with this same question posted below (Which Visual Studio Express Edition Works?) on December 20th, 2013.
      As I replied on that comment, your IDE would not be able to load every project of AdventureWorks Reference Implementation because this solution has several project of Web and others of Windows type. Therefore, you would need a version of Visual Studio that may support both project types. Regards.
  • Using ISupportncrementalLoading interface
    2 Posts | Last post February 06, 2014
    • The Prism project for Windows 8 and 8.1 Store Apps do not include any example implementing incremental loading of data (pagination). Does the Prism team not have any guidelines surrounding this requirement?
    • Hi,
      
      In the download section of the CodePlex site for this project you can find the Prism's Quickstarts which include a IncrementalLoadingQuickstart:
      - https://prismwindowsruntime.codeplex.com/releases/view/106870
      
      You can also find the Quickstart's documentation in the following link:
      - http://msdn.microsoft.com/en-us/library/windows/apps/dn535964.aspx
      
      Thanks,
      
      Damian Cherubini
      http://blogs.southworks.net/dcherubini
  • Transitioning Windows 8 Prism App to Windows 8.1 Prism App
    1 Posts | Last post January 30, 2014
    • My team has already built a fully functioning Windows Store Business App for Windows 8 using Prism.
      We now want to migrate our app over to Windows 8.1 and also want to use the new Prism framework for Windows 8.1. The documentation present helps to build Windows Store applications from scratch.
      I could not find any specific guidelines to aid me in my endeavour. Could anyone please help me with this?
  • how to stop keyboard popping up on a tablet
    3 Posts | Last post January 30, 2014
    • Hi anyone tried this on a tablet?  Soon as the page loads the searchbox receives focus and they keyboard pops up obscuring half the app.
      
      Setting the IsTabStop to false doesn't appear to stop this behavior, anyone got any workrounds?
    • Ok I've fudged it by putting a 0 sized 0 opacity button behind the search box with a lower tab index.
      
      Surely there has to be a better way?
    • Another workaround for the same is enclosing the search textbox with a scrollviewer control with tags as seen below:
      
      <ScrollViewer IsTabStop="True" HorizontalScrollBarVisibility="Hidden"  VerticalScrollbarVisibility="Hidden">
        
         <SEARCHTEXTBOX>
      
      </ScrollViewer>
  • Why I get these errors?
    2 Posts | Last post January 25, 2014
    • Hello, I build and deploy the application but I get these errors:
      
      MakePRI: root node not found.
      
      Can´t find file "C:\EJEMPLOS\MVVM\Developing a Windows Store Business App using C# and Prism with MVVM\C#\.nuget\nuget.targets".	AdventureWorks.WebServices
      
      
      Can´t find file "C:\EJEMPLOS\MVVM\Developing a Windows Store Business App using C# and Prism with MVVM\C#\.nuget\nuget.targets".	AdventureWorks.UILogic
      
      Can´t find file "C:\EJEMPLOS\MVVM\Developing a Windows Store Business App using C# and Prism with MVVM\C#\.nuget\nuget.targets".	AdventureWorks.Shopper
      
      Processing Resources with error
      
      
    • Open the csproj file in notepad and near the bottom remove the references to the nuget.targets and save this will then allow you to open the projects
1 - 10 of 14 Items