In this post, I am going to talk about the new Silverlight for Windows Embedded sample application called XamlPerf. In addition of being a sample UI, it also displays some performance information on your screen as well as in the debug output window. The UI, however is not functional, yet. That task is up to us – currently if you click anywhere, XamlPerf will exit. The sample UI comes with different animations which are defined in different XAML files. These animations are Bounce, Bubbles, and Carousel:
Bubbles and Carousel both load with a default screen resolution of 800x480.
In order to include XamlPerf to your OSDesign you need to add the SYSGEN_SAMPLEXAMLPERF sysgen variable. You will find that this sysgen variable is NOT part of your catalog; but that you have to set is manually. To do so, simply add it as an environment variable from the Project->Properties dialog from within the PlatformBuilder UI. Upon rebuilding your system you will get shortcuts for the Bounce, Bubble, and Carousel XamlPerf on your devices desktop.
You can now either start XamlPerf by:
- Double clicking on one of the shortcuts or
- Via the command line with the following command: XamlPerf \windows\xamlperf\[XAMLFile].xaml where XALMFile is Bounce.xaml, Bubbles.xaml or Carousel.xaml
The source code for the XamlPerf sample application is available under _PUBLICROOT\Common\Oak\Demos\XamlPerf whereas the XAML files can be found under: _PUBLICROOT\Common\Oak\Files\XamlPerf. On your device the XAML files reside under \WINDOWS\XamlPerf\.