Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: Usage of the Wizard-Control

$
0
0
Hi,

1) I'm not an expert with xaml-Designer. As you say, only the first page is displayed in the preview. I believe you can create each page individually in a new instance of VS2010 and copy the xaml code in your current VS2010 instance project. This way, each WizardPage could be created with the xaml-designer.

2) Of course you can add any controls in the WizardPage. WizardPages are ContentControls.
<xctk:WizardPage>
         <StackPanel>
            <Button Content="MyButton" />
            <RadioButton Content="RadioButton"
                         Height="26"
                         HorizontalAlignment="Left"
                         Margin="174,48,0,0"
                         Name="radioButton1"
                         VerticalAlignment="Top"
                         Width="133" />
            <Label Content="Label"
                   Height="28"
                   HorizontalAlignment="Left"
                   Margin="106,52,0,0"
                   Name="label1"
                   VerticalAlignment="Top"
                   Width="62" />
         </StackPanel>
      </xctk:WizardPage>
3) Right now, in the template of the Wizard, there are command bindings for the buttons (Cancel, Finish, Help, NextPage,, PreviousPage). When the Cancel command is executed, the event 'Cancel" is raised (the Cancel button is clicked) and when the Finish command is executed, the event 'Finish' is raised (the Finish button is clicked). So you can listen to the Wizard.CancelEvent and Wizard.Finish event to do your action.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>