Custom Control Adapters

Mar 2, 2010 at 8:06 PM

 

I am trying to do something like this in a custom .browsers file in addition to the MDBF.

<browser refID="Default">
    <controlAdapters>
      <adapter controlType="System.Web.UI.WebControls.Menu"
               adapterType="CSSFriendly.MenuAdapter" />
    </controlAdapters>
</browser>
<browser id="Mobile" parentID="Default">
    <identification>
      <capability name="isMobileDevice" match="true" />
    </identification>
    <controlAdapters>
      <adapter controlType="System.Web.UI.WebControls.Menu"
           adapterType="Controls.Adapters.Mobile.MenuAdapter" />
    </controlAdapters>
</browser>

I want to use the MDBF to flag isMobileDevice and load the appropriate adapter. Any suggestions?