WinCE: Silverlight Sample

From Compulab Mediawiki
Jump to: navigation, search

Overview

This document explains how to set up the OsDesign and Visual Studio to use Silverlight.

Recommended tools for Silverlight programming

Admolition note.png This is optional, you can write XAMLs on your own using any editor, however Expression Blend is more convenient.

Download and install:
Expression Blend 2.0:

And its SP1:

Settings for Silverlight programming

Add the following OS component to your runtime image:

  • SYSGEN_XAML_RUNTIME (Silverlight for Windows Embedded)

Building an application using Silverlight

Solution explorer:

(right click on)Subprojects=>Add New Subproject=> WCE Application=> Next=> A simple Windows Embedded CE application => Finish


  1. <subproject-name>=>(right click)Resource files=>new item=> XAML.rc => Add
  2. open the XAML.rc=>(right click)add resource=>Import=>select the XAML you created [using expression blend (Default: page.xaml)]=>in the resource type: XAML
  3. Solution Explorer=>(double click)<subproject-name>=>add to the sources file:
in SOURCES:
XAML.rc
in TARGETLIBS:
$(_PROJECTROOT)\cesysgen\sdk\lib\$(_CPUINDPATH)\xamlruntime.lib \
$(_PROJECTROOT)\cesysgen\sdk\lib\$(_CPUINDPATH)\uuid.lib \


Now you are ready to create your own Silverlight Application!

Additional information

For more information about Silverlight programming for Windows Embedded: http://geekswithblogs.net/WindowsEmbeddedCookbook/archive/2009/10/01/silverlight-for-embedded-tutorial.aspx

A built-in sample application how-to: http://discovertheexperience.blogspot.com/2009/10/windows-embedded-ce-60-r3-silverlight.html