ערוך

שתף באמצעות


Wizard.StepNavigationTemplate Property

Definition

Gets or sets the template that is used to display the navigation area on any WizardStepBase-derived objects other than the Start, the Finish, or Complete step.

public:
 virtual property System::Web::UI::ITemplate ^ StepNavigationTemplate { 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 StepNavigationTemplate { 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.StepNavigationTemplate : System.Web.UI.ITemplate with get, set
Public Overridable Property StepNavigationTemplate As ITemplate

Property Value

An ITemplate that contains the template for displaying the navigation area on any WizardStepBase-derived objects of the Wizard control other than the Start, Finish, or Complete. The default is null.

Attributes

Remarks

Use the StartNavigationTemplate property to specify the custom content that is displayed for the navigation area on the Step step of the Wizard control. Define the content by creating a template that specifies how the navigation area is rendered on the Step step.

The custom content for the template is contained within the StepNavigationTemplate object. You can add custom content to the StepNavigationTemplate object either by using template-editing mode in design view or by defining the StepNavigationTemplate object inline using StepNavigationTemplate tags. The content can be as simple as plain text or more complex (embedding other controls in the template, for example).

Note

The StepNavigationTemplate object that is contained in the StepNavigationTemplate property must contain two IButtonControl controls, one with its CommandName property set to "MoveNext" and one with its CommandName property set to "MovePrevious", to enable the navigation feature.

To access a control that is defined in a template programmatically, use the Controls collection of the Wizard object. You can also use the FindControl method of the Wizard object to find the control, if the control has an ID property specified.

Applies to

See also