Wizard.StartNavigationTemplate 属性

定义

获取或设置用于显示 Start 控件的 Wizard 步骤中的导航区域的模板。Gets or sets the template that is used to display the navigation area on the Start step of the Wizard control.

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

属性值

ITemplate

一个 ITemplate,它包含用于显示 StartWizard 上的导航区域的模板。An ITemplate that contains the template for displaying the navigation area on the Start for the Wizard. 默认值为 nullThe default is null.

属性

注解

使用 StartNavigationTemplate 属性指定为控件的步骤显示的导航区域的自定义内容 Start WizardUse the StartNavigationTemplate property to specify the custom content that is displayed for the navigation area on the Start step of the Wizard control. 通过创建指定如何在步骤中呈现导航区域的模板来定义内容 StartDefine the content by creating a template that specifies how the navigation area is rendered on the Start step.

模板的自定义内容包含在 StartNavigationTemplate 对象内。The custom content for the template is contained within the StartNavigationTemplate object. 您可以 StartNavigationTemplate 通过在 "设计" 视图中使用模板编辑模式或通过使用标记来定义嵌入对象,将自定义内容添加到对象 StartNavigationTemplate StartNavigationTemplateYou can add custom content to the StartNavigationTemplate object either by using template-editing mode in design view or by defining the StartNavigationTemplate object inline using StartNavigationTemplate tags. 内容可以与纯文本或更复杂 (嵌入模板中的其他控件一样简单,例如) 。The content can be as simple as plain text or more complex (embedding other controls in the template, for example).

备注

StartNavigationTemplate属性中包含的对象 StartNavigationTemplate 必须包含一个控件,其 IButtonControl CommandName 属性设置为, "MoveNext" 以启用导航功能。The StartNavigationTemplate object that is contained in the StartNavigationTemplate property must contain an IButtonControl control with the CommandName property set to "MoveNext" to enable the navigation feature.

若要以编程方式访问在模板中定义的控件,请使用 Controls 对象的集合 WizardTo access a control that is defined in a template programmatically, use the Controls collection of the Wizard object. FindControl Wizard 如果控件具有指定的属性,则还可以使用对象的方法来查找控件 IDYou can also use the FindControl method of the Wizard object to find the control, if the control has an ID property specified.

适用于

另请参阅