MEDC '07 Las Vegas - Using Expression Blend to build a Custom shell for XP Embedded

Intéressant lab que celui-ci. En effet, si l'on veut développer un shell WPF pour une cible XPe, rien de plus simple

On commence par créer une application WPF avec Microsoft Expression Blend. N'importe quelle application fait l'affaire, moyennant quelques paramètres permettant de forcer l'application à être en plein écran, sans bordures, non redimensionnable,...

Une fois cette application générée, il s'agit de créer un nouveau composant XPe avec l'outils Component Designer. Les étapes à suivre sont les suivantes :

  • ajouter un repository dont le chemin est celui du répertoire de génération de l'application WPF
  • créer un composant ayant pour prototype Software|System|User Interface|Shells|Windows Shell|Shell Prototype Component, puis lui ajouter
    • l'instruction CMI depuis l'écran de configuration "advanced" du composant,
    • le fichier exécutable ( à mettre dans Windows\system32 (%11%))
    • un "Group membership" de type Software|System|User Interface|Shells
    • le repository créé précédemment

Pour ajouter le composant dans la base de donnée, on utilise ensuite le Database Manager dans lequel on importe le fichier .sld créé avec Component designer.

Enfin, on crée une configuration d'OS avec Target Designer, en s'assurant entre autre que l'on sélectionne bien notre nouveau composant comme shell pour le système et que l'on inclue le Framework 3.0 (ce composant est disponible dans la CTP du FP 2008).

On obtient à l'arrivée un système embarqué présentant une interface graphique WPF... et ceci en quelques opérations élémentaires.

 

Interesting lab! If you want a WPF shell for your XPe target, it's very easy!

You have to start by generating a WPF application using Microsoft Expression Blend. Any application will do as long as you set some particular parameters such as forcing the application to be fullscreen, without borders, non resizable,...

Once the application is generated you have ot create a new XPe component using Component Designer. The step you have to follow consist in:

  • Adding Repository with the source path of the generated WPF application
  • cteate a component using prototype Software|System|User Interface|Shells|Windows Shell|Shell Prototype Component, then add to this new component:
    • a CMI instruction from the "Advanced" part of the configuration screen,
    • the executable file (to be located in folder Windows\system32 (%11%))
    • a "Group membership": Software|System|User Interface|Shells
    • the previously created repository

To add the component to the components database, you have tu use the Database Manager in which you import the .sld file created with Component designer.

Finally, you create an OS configuration with Target Designer, ensuring you select the newly created shell component as the shell, and the .NET Framework 3.0 (available from the FP 2008 CTP).

At the end, you get an embedded system with a WPF graphical interface... and you did that with just a few elementary steps.