Hi
I think you should modify Wizard.OnCurrentPageChanged method to this:
```
protected virtual void OnCurrentPageChanged(WizardPage oldValue, WizardPage newValue)
{
if (oldValue != null)
oldValue.RaiseEvent(new RoutedEventArgs(WizardPage.LeaveEvent));
RaiseRoutedEvent(Wizard.PageChangedEvent);
if (newValue != null)
newValue.RaiseEvent(new RoutedEventArgs(WizardPage.EnterEvent));
}
```
Not sure if its works or not, but please make it possible.
thank you.
Comments: ** Comment from web user: BoucherS **
I think you should modify Wizard.OnCurrentPageChanged method to this:
```
protected virtual void OnCurrentPageChanged(WizardPage oldValue, WizardPage newValue)
{
if (oldValue != null)
oldValue.RaiseEvent(new RoutedEventArgs(WizardPage.LeaveEvent));
RaiseRoutedEvent(Wizard.PageChangedEvent);
if (newValue != null)
newValue.RaiseEvent(new RoutedEventArgs(WizardPage.EnterEvent));
}
```
Not sure if its works or not, but please make it possible.
thank you.
Comments: ** Comment from web user: BoucherS **
Hi,
If you register each page to Enter/Leave events, you will see that every time you press Next/Back, the Enter/Leave events will be raised.
Also, every time you set in code currentPage = X, the Enter/Leave events are raised.
In what scenario does the Enter/Leave events are not raised?
What version of the Toolkit do you use.
I tested on v2.3.