Share via


Templating Options Dialog Box

Use the Templating Options dialog box to prepare a templated control for template-editing mode. This dialog box enables you to select an applied device filter for which you want to define templates. It also provides a way to specify a markup language schema to use in Source view of the page designer when you edit template contents.

Note

Template-editing mode in Design view is supported only for HTML-based templates. You must use Source view to edit the contents of non-HTML templates. However, you can prepare a control for template editing using the Templating Options dialog box in Design view.

To access this dialog box

  1. In Visual Studio, open or create a new Mobile Web Form.

  2. Switch to Design view.

  3. From the Mobile Web Forms tab of the Toolbox, drag a templated control, such as the List or ObjectList control, into the mobile Form on the page.

  4. Right-click the control and click Templating Options in the shortcut menu.

Tasks

UI Elements

  • Applied Device Filter
    Select the applied device filter for which you want to define templates. If you need to add a device filter to the list, click the Edit button. When the dialog box closes, the TemplateDeviceFilter item in the control's Properties window will be updated to reflect the currently selected device filter.

  • Edit (Applied Device Filter)
    Click to modify the list of applied device filters for the control. This opens the Applied Device Filters dialog box. For more information, see Applied Device Filters Dialog Box and Applied Device Filters Dialog Box and Applied Device Filters Dialog Box and Applied Device Filters Dialog Box and Applied Device Filters Dialog Box.

  • Markup Schema
    Select or type a markup language schema to use for the selected applied device filter. The default is the mobile HTML 3.2 template. The page will be updated when a change is made to the markup schema field for a given style (if present) and device filter.

    Note

    The information specified in the Markup Schema field is used only by Design view and has no effect at run time. The schema will provide correct IntelliSense and syntax checking in Source view while you are editing template contents.

See Also

Concepts

Using Stylesheets

ASP.NET Device Filtering Overview

ASP.NET Mobile Web Development Overview

Other Resources

Customizing with Control Templates

Customizing ASP.NET Mobile Web Controls for Specific Devices

Developing Adapters for ASP.NET Server Controls