O'Reilly logo

Microsoft® .NET Compact Framework (Core Reference) by Mark Sutton, Rory MacLoed, Robert Burbidge, Stephen Wheelwright, Andy Wigley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Emulator Skins

The GUI for the emulator can be customized by creating a skin. A custom skin gives the emulator the look and feel of a specific hardware platform. Skins are not essential, but you might find them helpful if you want to customize the emulator appearance. Skins are defined in an XML file, as shown in the following example code.

Example 5-3. Oval.xml

<?xml version="1.0"?> <skin>   <view     titleBar ="Oval Emulator Skin"     displayPosX="72"        displayPosY="72"     displayWidth="336"     displayHeight="216"     displayDepth="8"     normalImage="Oval.bmp"     mappingImage="OvalButtonMap.bmp"     downImage="OvalButtonDown.bmp"   >     <!-- Red button -->     <button mappingColor="0xFF0000" toolTip="Left"  onClick="Key_Left"/> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required