2010年4月28日 星期三

Silverlight for Windows Embedded

http://msdn.microsoft.com/en-us/library/ee502198(v=WinEmbedded.60).aspx
http://geekswithblogs.net/WindowsEmbeddedCookbook/archive/2009/10/01/silverlight-for-embedded-tutorial.aspx

在Windows CE 6 R3 中加入 silverlight component

Silverlight for Windows Embedded 對應到 Silverlight 2 版本
而且 只能用C++ 來寫而非 C# or Visual Basic
而且好像不依賴 .net compact framework

大致上是
http://msdn.microsoft.com/en-us/library/ee503558.aspx

To create an application for a Windows Embedded CE powered device that is based on Silverlight, you create the XAML file that defines the UI and create a subproject. Then, use the Silverlight C++ API to initialize Silverlight, parse the XAML file into an object tree, and add event handlers to the parsed elements.

1. include some header
2. call XamlRuntimeInitialize()

詳細範例可參考
\WINCE600\PUBLIC\COMMON\OAK\DEMOS\XAMLPERF

和silverlight 差異的部份
http://msdn.microsoft.com/en-us/library/ee501848(v=WinEmbedded.60).aspx

沒有留言: