WPF Extended toolkit validation

Im using the WPF Extended toolkit Wizard.

I am wondering how I can verify that all controls have been populated on the page before allowing the user to move forward.

I know that I can catch the next mouse click in my code in

 private void Wizard_Next(object sender, Xceed.Wpf.Toolkit.Core.CancelRoutedEventArgs e)
 {
 }

I know that I can determine which page on the Wizard I'm based on based on the sender, but how can I get a handle to the controls that are on this page of the wizard?

+4
source share
2 answers

You can do this with CanSelectNextPage via xaml For example:

<xctk:WizardPage.CanSelectNextPage>
            <MultiBinding Converter="{StaticResource NextFromPage1}">
                <Binding ElementName ="checkbox1" Path="IsChecked" Mode="OneWay"/>
                <Binding ElementName ="checkbox2" Path="IsChecked" Mode="OneWay"/>
                <Binding ElementName ="text1" Path="Text" Mode="OneWay"/>
                <Binding ElementName ="text2" Path="Text" Mode="OneWay"/>
            </MultiBinding>
</xctk:WizardPage.CanSelectNextPage>

, ,

+1

, ..

e.Cancel = true;

"" , .

, , - , .

e.Cancel = true;
Wizard.CurrentPage = PageNo

, . , .

+1

All Articles