Quantcast
Channel: Dotnet/C# – Xinyustudio
Viewing all articles
Browse latest Browse all 204

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

$
0
0

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:

image

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

image

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!

image


Filed under: Dotnet/C# Tagged: AvalonWizard tutorial example event handling

Viewing all articles
Browse latest Browse all 204

Latest Images

Trending Articles



Latest Images