次の方法で共有


Modifying and Replacing the NMD UI (Windows CE 5.0)

Send Feedback

The Windows CE 5.0 Networked Media Device Feature Pack includes a sample UI for a Networked Media Device (NMD). This sample is not intended to be used in a production level NMD without modification. If you decide to use this code in your own product, make sure that it is tested completely.

Modifying the sample UI

The following list describes changes, in order of complexity, that you may want to consider:

  1. Minimal Branding: Replace the OEM logo and some text for the about box.

  2. Custom graphics branding: Replace most or all of the existing graphics with same size images that match your desired look.

  3. UI Layout modifications: Modify the code in the sample UI to add features, modify screen layout, and/or change program flow. This requires understanding the UI framework.

  4. Replace the sample UI with new code, and use the Media Query Engine as an interface to the WMC server. This involves a total rewrite of the application, (reusing portions of the sample as needed).

    Note The sample UI will not work with UPnP media servers other than Windows Media Connect. This is because it uses (in a few places) WMC 2.0 extensions (thumbnails, folder navigation). These are limitations of the sample UI and not of the Media Query Engine.

Designing a custom UI

If you desire to build a custom user interface, there are several methods you can use:

  • Customize the sample UI included with this feature pack.

    We will discuss this option in more depth later in this section.

  • Use an Internet Explorer based interface as a shell for the UI.

    The shell design can be implemented using Html, Jscript and ActiveX controls. This can allow for rapid development, flexibility and maintainability.

Changing the Name of the Application

You should change the name of the application that is displayed in Windows Media Connect from "Network Media Device" to a name of your own choice using one of two methods.

  • You can change the MediaRenderer.xml Description Document. This xml file has <friendly name> tag that you will want to change.

  • You can also change it using the registry in the following way:

    [HKEY_LOCAL_MACHINE\Software\UPnPDevices\MediaRenderer]
        "State"=dword:2
        "LifeTime"=dword:800
        "XMLDescFile"="\\windows\\upnp\\MediaRenderer.xml"
        "ProgId"="MediaRenderer.Device"
        "InitString"=""
        "FriendlyName"="Network Media Device"
    

See Also

User Interface Customization for a Networked Media Device

Windows Media Connect: Device UI Design Recommendations Whitepaper

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.