How to use WPF AvalonWizard control (II): Adding event handlers

02 Oct

In my previous post, we have discussed on how to get started with AvalonWizard. Yes, we need do sth else to make it work for our project. In this post, I will demonstrate how to add some logic to accomplish this.

The first example is to config the behavior when the Cancel button is clicked and this is quite easy:


In the code-behind file, add the corresponding event handler:


The next example is a little bit complex, and we wish the “Next” button changes to “Finish” button if the checkbox “Create an empty project” is clicked.

image  image

To accomplish this, we can hook the Checked/Unchecked event handler and set the FirstPage.IsFinishPage property. Emm, it works!


Leave a comment

Posted by on October 2, 2012 in Dotnet/C#



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: