Dynamic Navigation over a Fixed Hierarchical Topology Sample

This sample illustrates how to support dynamic navigation over a fixed hierarchical topology. This and other topologies are discussed in Structured Navigation Overview.

7,590 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook
namespace FixedHierarchicalTopologySample
    using System;
    using System.Windows.Navigation;
    public class WizardLauncher : PageFunction<WizardContext>
        WizardData WizardData = new WizardData();
        protected override void Start()

            // Retain instance in navigation history until Wizard is complete
            this.KeepAlive = true;
            // Launch the Wizard
            WizardPage1 WizardPage1 = new WizardPage1(this.WizardData);
            WizardPage1.Return += new ReturnEventHandler<WizardResult>(WizardPage_Return);

        public void WizardPage_Return(object sender, ReturnEventArgs<WizardResult> e)
            // Wizard was completed (finished or canceled), return WizardResult and WizardData
            OnReturn(new ReturnEventArgs<WizardContext>(new WizardContext(e.Result, this.WizardData)));