Επεξεργασία

Κοινή χρήση μέσω


Wizard.LayoutTemplate Property

Definition

Gets or sets the custom content of the root container in a Wizard control.

public:
 virtual property System::Web::UI::ITemplate ^ LayoutTemplate { System::Web::UI::ITemplate ^ get(); void set(System::Web::UI::ITemplate ^ value); };
[System.ComponentModel.Browsable(false)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
[System.Web.UI.TemplateContainer(typeof(System.Web.UI.WebControls.Wizard))]
public virtual System.Web.UI.ITemplate LayoutTemplate { get; set; }
[<System.ComponentModel.Browsable(false)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
[<System.Web.UI.TemplateContainer(typeof(System.Web.UI.WebControls.Wizard))>]
member this.LayoutTemplate : System.Web.UI.ITemplate with get, set
Public Overridable Property LayoutTemplate As ITemplate

Property Value

An object that contains the custom content for the root container in a Wizard control. The default is null, which indicates that this property is not set.

Attributes

Examples

The following example shows how to add a LayoutTemplate element to the Wizard control and how to format the components of the Wizard control by using div elements. When the control renders, the div elements will be used instead of HTML tables to format the control.

Remarks

You can use the LayoutTemplate property to define a custom user interface (UI) for the Wizard control. To specify a layout template, add a LayoutTemplate element inside the Wizard control markup. Inside the LayoutTemplate element, add placeholders for the components of the Wizard control. Placeholders for the navigation, sidebar, and wizard-step sections of the Wizard control are required in the LayoutTemplate element.

Note

You can modify the layout template in Source view. Editing the layout template in Design view is not supported.

Applies to