Wizard.FinishNavigationTemplate プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Wizard.FinishNavigationTemplate プロパティの意味・解説 

Wizard.FinishNavigationTemplate プロパティ

メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。

Finish ステップのナビゲーション領域を表示するために使用されるテンプレートを取得または設定します。

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

<TemplateContainerAttribute(GetType(Wizard))> _
Public Overridable Property
 FinishNavigationTemplate As ITemplate
Dim instance As Wizard
Dim value As ITemplate

value = instance.FinishNavigationTemplate

instance.FinishNavigationTemplate = value
[TemplateContainerAttribute(typeof(Wizard))] 
public virtual ITemplate FinishNavigationTemplate { get;
 set; }
[TemplateContainerAttribute(typeof(Wizard))] 
public:
virtual property ITemplate^ FinishNavigationTemplate {
    ITemplate^ get ();
    void set (ITemplate^ value);
}
/** @property */
public ITemplate get_FinishNavigationTemplate ()

/** @property */
public void set_FinishNavigationTemplate (ITemplate
 value)
public function get FinishNavigationTemplate
 () : ITemplate

public function set FinishNavigationTemplate
 (value : ITemplate)

プロパティ値
Wizard の Finish のナビゲーション領域に表示されるコンテンツを定義する ITemplate。既定値は null 参照 (Visual Basic では Nothing) です。

解説解説

FinishNavigationTemplate プロパティを使用して、Wizard コントロールの Finish ステップのナビゲーション領域に表示されるカスタム コンテンツを指定します。Finish ステップにナビゲーション領域を表示する方法を指定するテンプレートを作成して、コンテンツを定義します。

テンプレートのカスタム コンテンツは、FinishNavigationTemplate オブジェクトに格納されます。FinishNavigationTemplate オブジェクトにカスタム コンテンツを追加するには、デザイン ビューでテンプレート編集モードを使用するか、または FinishNavigationTemplate タグを使用して FinishNavigationTemplate オブジェクトをインラインで定義します。内容は、簡単なプレーンテキストとしたり、テンプレートに他のコントロールを埋め込んで複雑にしたりできます。

メモメモ

FinishNavigationTemplate プロパティに格納された FinishNavigationTemplate オブジェクトは、2 つのIButtonControl コントロールを格納している必要があります。ナビゲーション機能を有効にするためには、一方のコントロールは CommandName プロパティが "MoveFinish" に設定され、もう一方のコントロールは CommandName プロパティが "MovePrevious" に設定されている必要があります。

テンプレートで定義されたコントロールにプログラムからアクセスするには、Wizard オブジェクトの Controls コレクションを使用します。コントロールに ID プロパティが指定されている場合は、Wizard オブジェクトの FindControl メソッドを使用してコントロールを検索することもできます。

使用例使用例

FinishNavigationTemplate プロパティを使用して、Wizard コントロールの Finish ステップに表示されるナビゲーション領域のカスタム テンプレートを作成する方法を次のコード例に示します。

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
  
  Sub OnFinishButtonClick(ByVal sender As
 Object, ByVal e As WizardNavigationEventArgs)
    ' Insert code here that determines if an email address was
    ' entered in emailTextBox. Then send an confirmation email if it
 was.     
  End Sub

</script>

<html  >
  <body>
    <form id="form1" 
      title="FinishNavigationTemplate Example" 
      runat="server">
      <asp:Wizard ID="Wizard1" 
        Runat="server" 
        ActiveStepIndex="0" 
        OnFinishButtonClick="OnFinishButtonClick">
        <WizardSteps>
          <asp:WizardStep Runat="server" 
            Title="Step 1">
            <!-- Put UI elements for Step
 1 here. -->
            This is step one.
          </asp:WizardStep>
          <asp:WizardStep Runat="server" 
            Title="Step 2">
            <!-- Put UI elements for Step
 2 here. -->
            This is step two.
          </asp:WizardStep>
          <asp:WizardStep Runat="server" 
            StepType="Complete" 
            Title="Complete">
            The Wizard has been completed.
          </asp:WizardStep>
        </WizardSteps>
        <FinishNavigationTemplate>
          Please enter your email address if you would like
 a confirmation email:
          <asp:TextBox ID="emailTextBox" 
            Runat="server">
          </asp:TextBox>
          &nbsp;<br />
          <asp:Button CommandName="MovePrev"
              Runat="server" 
              Text="Previous" />
          <asp:Button CommandName="MoveFinish"
 
            Runat="server" 
            Text="Finish" />
        </FinishNavigationTemplate>
        <HeaderTemplate>
          <b>FinishNavigationTemplate Example</b>
        </HeaderTemplate>
      </asp:Wizard>
    </form>
  </body>
</html>
<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

  void OnFinishButtonClick(object sender, EventArgs e)
  {
    // Insert code here that determines if an email address was
    // entered in emailTextBox. Then send an confirmation email if it
 was.     
  }
  
</script>

<html  >
  <body>
    <form id="form1" 
      title="FinishNavigationTemplate Example" 
      runat="server">
      <asp:Wizard ID="Wizard1" 
        Runat="server" 
        ActiveStepIndex="0" 
        OnFinishButtonClick="OnFinishButtonClick">
        <WizardSteps>
          <asp:WizardStep Runat="server" 
            Title="Step 1">
            <!-- Put UI elements for Step 1 here. -->
            This is step one.
          </asp:WizardStep>
          <asp:WizardStep Runat="server" 
            Title="Step 2">
            <!-- Put UI elements for Step 2 here. -->
            This is step two.
          </asp:WizardStep>
          <asp:WizardStep Runat="server" 
            StepType="Complete" 
            Title="Complete">
            The Wizard has been completed.
          </asp:WizardStep>
        </WizardSteps>
        <FinishNavigationTemplate>
          Please enter your email address if you would like a
 confirmation email:
          <asp:TextBox ID="emailTextBox" 
            Runat="server">
          </asp:TextBox>
          &nbsp;<br />
          <asp:Button CommandName="MovePrev"
              Runat="server" 
              Text="Previous" />
          <asp:Button CommandName="MoveFinish" 
            Runat="server" 
            Text="Finish" />
        </FinishNavigationTemplate>
        <HeaderTemplate>
          <b>FinishNavigationTemplate Example</b>
        </HeaderTemplate>
      </asp:Wizard>
    </form>
  </body>
</html>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「Wizard.FinishNavigationTemplate プロパティ」の関連用語

Wizard.FinishNavigationTemplate プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Wizard.FinishNavigationTemplate プロパティのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS