Skin Definition File Example (Devices)

The following code is the Skin Definition File, PocketPC_2003_Skin.xml, for the Pocket PC 2003 skin in portrait format. Visual Studio, except Express editions, installs this and other skin files by default at drive:\Program Files\Microsoft Visual Studio 9.0\SmartDevices\Skins.

You can use the same skin files for the Device Emulator and for the Visual Studio designers. For more information, see Skin Definition File Details (Devices).

Note

Windows Mobile 5 and 6 SDKs are installed outside the Visual Studio folder, for example, drive:\Program Files\Windows Mobile 5.0 SDK R2 and drive:\Program Files\Windows Mobile 6 SDK.

Code

<?xml version="1.0" encoding="UTF-8" ?>
<skin>
    <view
        titleBar ="Pocket PC 2003 Second Edition"
        displayPosX="51"
        displayPosY="47"
        displayWidth="240"
        displayHeight="320"
        displayDepth="16"
        mappingImage="PocketPC_2003_Mask.png"
        normalImage="PocketPC_2003_Up.png"
        downImage= "PocketPC_2003_Down.png">
        <button
            toolTip="Power"
            onPressAndHold="0x75"
            mappingColor="0xED145B"
        />
        <button   
            toolTip="Record"
            onPressAndHold="0x44" 
            mappingColor="0xF5989D"
        />      
        <button
            toolTip="Rocker Up"
            onPressAndHold="0x48"
            mappingColor="0x0072BC"
            KeyEvent="Up"
        />   
        <button
            toolTip="Rocker Down"
            onPressAndHold="0x50"
            mappingColor="0x605CA8"
            KeyEvent="Down"
        />
        <button
            toolTip="Soft Key 1"
            onClick="DOWN:0x5b 0x70 UP:0x5b"
            mappingColor="0xF26C4F"
        />   
        <button
            toolTip="Soft Key 2"
            onClick="DOWN:0x5b 0x71 UP:0x5b"
            mappingColor="0xF68E56"
        />
        <button
            toolTip="Soft Key 3"
            onClick="DOWN:0x5b 0x72 UP:0x5b"
            mappingColor="0xFBAF5D"
        />   
        <button
            toolTip="Soft Key 4"
            onClick="DOWN:0x5b 0x73 UP:0x5b"
            mappingColor="0xF7941D"
        />
        <button
            toolTip="Up"
            onPressAndHold="0x48"
            mappingColor="0x39B54A"
            KeyEvent="Up"
        />
        <button
            toolTip="Down"
            onPressAndHold="0x50"
            mappingColor="0x009900"
            KeyEvent="Down"
        />
        <button
            toolTip="Left"
            onPressAndHold="0x4B"
            mappingColor="0x66CC66"
            KeyEvent="Left"
        />
        <button
            toolTip="Right"
            onPressAndHold="0x4D"
            mappingColor="0x00CC00"
            KeyEvent="Right"
        />
        <button
            toolTip="Enter"
            onClick="0x1C"
            mappingColor="0x006600"
            KeyEvent="Return"
        />         
    </view>
</skin>

See Also

Other Resources

Customizing Skins (Devices)