private void CreateStepNavigationTemplate(Control container)
 {
     ITemplate stepNavigationTemplate = this.Owner.StepNavigationTemplate;
     this._stepNavigationTemplateContainer = new Wizard.StepNavigationTemplateContainer(this.Owner);
     this._stepNavigationTemplateContainer.ID = "StepNavigationTemplateContainerID";
     if (stepNavigationTemplate == null)
     {
         this._stepNavigationTemplateContainer.EnableViewState = false;
         this._defaultStepNavigationTemplate = Wizard.NavigationTemplate.GetDefaultStepNavigationTemplate(this.Owner);
         stepNavigationTemplate = this._defaultStepNavigationTemplate;
     }
     else
     {
         this._stepNavigationTemplateContainer.SetEnableTheming();
     }
     stepNavigationTemplate.InstantiateIn(this._stepNavigationTemplateContainer);
     container.Controls.Add(this._stepNavigationTemplateContainer);
 }
 private void CreateFinishNavigationTemplate(Control container)
 {
     ITemplate finishNavigationTemplate = this.Owner.FinishNavigationTemplate;
     this._finishNavigationTemplateContainer = new Wizard.FinishNavigationTemplateContainer(this.Owner);
     this._finishNavigationTemplateContainer.ID = "FinishNavigationTemplateContainerID";
     if (finishNavigationTemplate == null)
     {
         this._finishNavigationTemplateContainer.EnableViewState = false;
         this._defaultFinishNavigationTemplate = Wizard.NavigationTemplate.GetDefaultFinishNavigationTemplate(this.Owner);
         finishNavigationTemplate = this._defaultFinishNavigationTemplate;
     }
     else
     {
         this._finishNavigationTemplateContainer.SetEnableTheming();
     }
     finishNavigationTemplate.InstantiateIn(this._finishNavigationTemplateContainer);
     container.Controls.Add(this._finishNavigationTemplateContainer);
 }