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,592 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook
namespace FixedHierarchicalTopologySample
    using System;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Navigation;

    /// <summary>
    /// Interaction logic for WizardPage4.xaml
    /// </summary>

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

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

        void backButton_Click(object sender, RoutedEventArgs e)
            // Go to previous Wizard page

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

        void finishButton_Click(object sender, RoutedEventArgs e)
            // Finish the Wizard and return bound data to calling page
            OnReturn(new ReturnEventArgs<WizardResult>(WizardResult.Finished));