Approved
Last Updated: 04 Aug 2016 09:39 by ADMIN
ADMIN
Created by: Stefan Nenchev
Comments: 1
Category: Wizard
Type: Feature Request
4

			
Approved
Last Updated: 04 Aug 2016 09:48 by ADMIN
ADMIN
Created by: Yoan
Comments: 0
Category: Wizard
Type: Feature Request
3

			
Approved
Last Updated: 22 Nov 2019 14:51 by ADMIN

If you change the DataContext property of WizardPage at run-time, the context in the content presenter that shows the footer is not updated accordingly. 

To work this around you can create a custom WizardPage and manually set the data context of the footer presenter.

public class CustomWizardPage : WizardPage
{
	private ContentControl footerContentControl;

	public override void OnApplyTemplate()
	{
		base.OnApplyTemplate();
		this.footerContentControl = this.GetTemplateChild("PART_FooterContentControl") as ContentControl;            
		this.DataContextChanged += CustomWizardPage_DataContextChanged;            
	}

	private void CustomWizardPage_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
	{
		this.footerContentControl.Content = e.NewValue;
	}
}

<telerik:RadWizard.WizardPages>
	<local:CustomWizardPage />
</telerik:RadWizard.WizardPages>