Navigation over a Fixed Linear Topology Sample

This sample illustrates how to provide navigation over a fixed linear topology. Building the Sample Install the Windows Software Development Kit (SDK) and open its build environment command window.

8,214 times
Add to favorites
E-mail Twitter Digg Facebook
namespace FixedLinearTopologySample
    using System;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Navigation;

    public partial class WizardPage1 : PageFunction<WizardResult>
        public WizardPage1(WizardData WizardData)

            // Bind Wizard state to UI
            this.DataContext = WizardData;

        void nextButton_Click(object sender, RoutedEventArgs e)
            // Go to next Wizard page
            WizardPage2 WizardPage2 = new WizardPage2((WizardData)this.DataContext);
            WizardPage2.Return += new ReturnEventHandler<WizardResult>(WizardPage_Return);

        void cancelButton_Click(object sender, RoutedEventArgs e)
            // Cancel the Wizard and don't return any data
            OnReturn(new ReturnEventArgs<WizardResult>(WizardResult.Canceled));

        public void WizardPage_Return(object sender, ReturnEventArgs<WizardResult> e)
            // If returning, Wizard was completed (finished or canceled),
            // so continue returning to calling page