internal override void CreateCustomNavigationTemplates() { for (int i = 0; i < this.WizardSteps.Count; i++) { TemplatedWizardStep step = this.WizardSteps[i] as TemplatedWizardStep; if (step != null) { string customContainerID = Wizard.GetCustomContainerID(i); Wizard.BaseNavigationTemplateContainer container = base.CreateBaseNavigationTemplateContainer(customContainerID); if (step.CustomNavigationTemplate != null) { step.CustomNavigationTemplate.InstantiateIn(container); step.CustomNavigationTemplateContainer = container; container.SetEnableTheming(); } else if (step == this.CreateUserStep) { ITemplate template = new DefaultCreateUserNavigationTemplate(this); template.InstantiateIn(container); step.CustomNavigationTemplateContainer = container; container.RegisterButtonCommandEvents(); } base.CustomNavigationContainers[step] = container; } } }
// Helper method to create custom navigation templates. internal override void CreateCustomNavigationTemplates() { // for (int i = 0; i < WizardSteps.Count; ++i) { TemplatedWizardStep step = WizardSteps[i] as TemplatedWizardStep; if (step != null) { string id = GetCustomContainerID(i); BaseNavigationTemplateContainer container = CreateBaseNavigationTemplateContainer(id); if (step.CustomNavigationTemplate != null) { step.CustomNavigationTemplate.InstantiateIn(container); step.CustomNavigationTemplateContainer = container; container.SetEnableTheming(); } else if (step == CreateUserStep) { ITemplate customNavigationTemplate = new DefaultCreateUserNavigationTemplate(this); customNavigationTemplate.InstantiateIn(container); step.CustomNavigationTemplateContainer = container; container.RegisterButtonCommandEvents(); } CustomNavigationContainers[step] = container; } } }