private void BindPageBehavior(WizardPageMvvmBehavior behavior, DependencyProperty property, IWizardPageViewModel source)
 {
     BindingOperations.SetBinding(behavior, property, new Binding(property.Name)
     {
         Source = source, UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged
     });
 }
        private static WizardPageMvvmBehavior EnsurePageBehavior(WizardPage page)
        {
            var behaviors    = Interaction.GetBehaviors(page);
            var pageBehavior = behaviors.OfType <WizardPageMvvmBehavior>().FirstOrDefault();

            if (pageBehavior == null)
            {
                pageBehavior = new WizardPageMvvmBehavior();
                behaviors.Add(pageBehavior);
            }
            return(pageBehavior);
        }