This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Windows Embedded Compact Framework 7 - Silverlight compatibility problem

Hi,

I've installed WinCE 7.0 with the A8_02_00_00 TI BSP and using this environment I'd like to test a Silverlight 3 project we have.  This project (solution) was created using Expression Blend 4 (with Silverlight 3 option), but it can be successfully open also in Expression Blend 3. 

After few simple changes in the solution file, I can create a Platform Builder Subproject based on it, and add it to the Platform Builder solution.  I can also compile it, but there are warnings, and the created executable doesn’t work (just like the warning descriptions say):

There are three main warnings:

Warning: 1 MediaElements detected. MediaElements are not supported by this version of Silverlight for Windows Embedded. The generated project may not build or run.

Warning: 5 shader effects detected. Shader effects may not be supported by your platform. If your platform doesn't support the effect then this feature will not work on your device. Verify that the platform supports the effect.

Warning: 24 unknown controls detected. Custom controls are not supported by this version of Silverlight for Windows Embedded.

 

And 4 repeated detailed warnings per each XAML:

69 Warning: BlurEffect may not be supported by your platform. If your platform doesn't support the shader effect then this feature will not work on your device.  The generated application may not run. Verify that the platform supports the Effect. The platform must support the Effect in order for it to work. 

14 Warning: unknown controls detected. Custom controls are not supported by this version of Silverlight for Windows Embedded.  The generated project may not build. Remove EventTrigger from the file or if it’s a custom control, manually register the control. 

15 Warning: unknown controls detected. Custom controls are not supported by this version of Silverlight for Windows Embedded.  The generated project may not build. Remove GoToStateAction from the file or if it’s a custom control, manually register the control. 

92 Warning: MediaElement is not supported. MediaElements are not supported by this version of Silverlight for Windows Embedded.  The generated project may not build or run. 

 

According to Microsoft, “Silverlight is compatible with Silverlight 3 XAML and provides a set of equivalent classes for supported XAML elements. For information about Silverlight 3 (http://msdn.microsoft.com/en-us/library/ee502198.aspx), but it looks like I’m missing something, since the same project doesn’t generate any errors nor warnings in Expression Blend.

I know this is a very OS-related question, but since, there is the WinCE category, maybe someone can help me.

I hope I’m just missing some libraries or have incorrect settings.

Please, let me know if you have any ideas. 

Thank you!!

Best Regards,

Zack

 

  • It seems that your XAML file calls some elements that are not supported by Silverlight for Windows Embedded (SWE). Keep in mind that SWE is compliant with version 3 of the desktop Silverlight but does not support all the elements provided by the standard version of Silverlight 3.

    You should hence replace the unsupported elements by other SWE compatible elements. From the error log above, it seems that you should remove the MediaElements and BlurEffects components from your UI.

  • Adeneo Embedded support team,

     

    Thank you very much for your response!

     

    In the meantime I found the following website:

    http://msdn.microsoft.com/en-us/library/ee501848.aspx

    There are described all the differences between Silverlight 3 and SWE. 

    For MediaElement – it looks like it’s not supported, and as a workaround we can just display the videos on top of the Silverlight surface using DirectShow.  I just hope they will be displayed smoothly (at least for small videos).

     

    For Blur and DropShadow effects – there are also some comments about them, and it looks like for TI 3530 and 3730 processors, for which Silverlight should be hardware accelerated (using OpenGL renderer), there should be support for these effects:

     

    If your OS design is built for a hardware platform that supports OpenGL ES, you can use the Blur and DropShadow elements in XAML as you normally would in a Microsoft Silverlight 3 application, and the effects will work in your Silverlight for Windows Embedded application. If your OS design is not built for a hardware platform that supports OpenGL ES, the XAML Blur and DropShadow elements will not work unless the OEM developer has added platform-specific code to the stubs.

     

    So it looks like there should be a way to display Blurs and DropShadows in our environment… Please let me know if there is something else I’m not aware of.

     

    Anyway, after removing MediaElements, Blurs and DropShadows I still have warnings because of the custom controls.  Is there something I can do about them?

     

    Thank you!

    Zack