Partager via


Update and Build the Project (Compact 7)

3/12/2014

After you create the Microsoft Expression Blend 3 project and the Windows Embedded Silverlight Tools subproject, and add C++ code to populate the list with data, you can build and run the Microsoft Silverlight for Windows Embedded application.

If you made changes to the Expression Blend project after you created the subproject in Platform Builder, you must update the subproject by using Windows Embedded Silverlight Tools.

To update the subproject

  1. In Platform Builder, open the subproject.

  2. Open a file (for example, MainPage.cpp) in the subproject.

  3. On the Tools menu, point to Windows Embedded Silverlight Tools, and then click Update Silverlight for Windows Embedded Project.

  4. On the File menu, click Save All.

To build and run the subproject

  1. In Solution Explorer, expand Subprojects, right-click the name of your subproject, and then click Build.

  2. Verify that no errors or warnings are reported in the Output window.

  3. Start the virtual CEPC that you already preconfigured. If you have not already done this, see Develop with Virtual CEPC.

  4. On the Target menu, click Attach Device.

  5. When the run-time image loads on the virtual CEPC, run your application.

  6. On the Target menu, click Run Programs.

  7. In the Run Program dialog box, click the file name of your application with the .exe extension, and then click Run.

In virtual CEPC, check the UI to verify that the data that you added to the XRObservableCollection<ItemType> class is displayed in the list and in any additional data-bound elements.

See Also

Concepts

Populate a Silverlight for Windows Embedded UI with Collections of Data