This project has moved. For the latest updates, please go here.

WizardPage do something on display

Mar 30, 2012 at 8:31 AM

Hi All,

I'm trying to use the Wizard control, in a vaguely MVVM fashion (next / previous page for another discussion), however this issue I'm having is getting WizardPage to do some initialisation on display.

I was trying to use interactions and trigger off the PageChanged event of the Wizard control using:

         <i:EventTrigger EventName="PageChanged">
            <i:InvokeCommandAction Command="{Binding CurrentPage.DataContext.InitPageCommand, RelativeSource={RelativeSource AncestorType={x:Type extToolkit:Wizard}}}" />

However the CurrentPage at this point is the one being left.

And I don't seem to be able to hang any interactions on the WizardPage itself that trigger when it's activated anyone have any pointers


Mar 30, 2012 at 10:33 AM

I have a solution! head hurts


<extToolkit:WizardPage x:Name="wpLicence" DataContext="{Binding LicencePageViewModel}">
		<ei:PropertyChangedTrigger Binding="{Binding IsVisible, RelativeSource={RelativeSource AncestorType={x:Type extToolkit:WizardPage}}}">
			<i:InvokeCommandAction Command="{Binding InitPageCommand}" CommandParameter="{Binding IsVisible, RelativeSource={RelativeSource AncestorType={x:Type extToolkit:WizardPage}}}" />
	<controls:Licence />

I received hints from