private static void OnProcessModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            WizardControl sh = (WizardControl)d;

            sh._viewModel.ProcessMode = (ProcessMode)e.NewValue;
        }
 private static void OnHeaderTemplateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     WizardControl sh = (WizardControl)d;
     //sh.HeaderTemplate = (DataTemplate)e.NewValue;
 }
        private static void OnErrorPageChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            WizardControl sh = (WizardControl)d;

            sh._viewModel.ErrorPage = (IWizardPage)e.NewValue;
        }
        private static void OnTitleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            WizardControl sh = (WizardControl)d;

            sh._viewModel.Title = (string)e.NewValue;
        }
        private static void OnPagesChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            WizardControl sh = (WizardControl)d;

            sh._viewModel.Pages = (ObservableCollection <IWizardPage>)e.NewValue;
        }