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>

Completed
Last Updated: 18 Jul 2017 11:05 by ADMIN

Available in R3 2017 Release
Completed
Last Updated: 30 May 2017 13:30 by ADMIN
Workaround for this issue is replacing the template for the RadWizard with:

    <ControlTemplate x:Key="RadWizardTemplate" TargetType="telerikNavigation:RadWizard">
        <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
              <Grid>
                <ContentPresenter x:Name="PART_SelectedPagePresenter" Content="{Binding SelectedPage, RelativeSource={RelativeSource TemplatedParent}}">
                    <ContentPresenter.Visibility>
                        <Binding RelativeSource="{RelativeSource TemplatedParent}" Path="IsContentPreserved" Converter="{StaticResource InvertedBooleanToVisibilityConverter}"/>
                    </ContentPresenter.Visibility>
                </ContentPresenter>
                <Grid x:Name="ContentElementsPanel" Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsContentPreserved, Converter={StaticResource BooleanToVisibilityConverter}}"/>
            </Grid>
        </Border>
    </ControlTemplate>

instead of:

    <ControlTemplate x:Key="RadWizardTemplate" TargetType="telerikNavigation:RadWizard">
        <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
            <ContentPresenter x:Name="PART_SelectedPagePresenter" Content="{Binding SelectedPage,RelativeSource={RelativeSource TemplatedParent}}"/>
        </Border>
    </ControlTemplate>



Available in LIB version: 2017.2.605