Wizard.LayoutTemplate Wizard.LayoutTemplate Wizard.LayoutTemplate Wizard.LayoutTemplate Property


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

 virtual property System::Web::UI::ITemplate ^ LayoutTemplate { System::Web::UI::ITemplate ^ get(); void set(System::Web::UI::ITemplate ^ value); };
[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public virtual System.Web.UI.ITemplate LayoutTemplate { get; set; }
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.


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.


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.


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

Applies to