If you define a single WizardPage in the WizardPages collection and set its AllowFinish property to False, the Finish button is enabled.
To work this around, set the AllowFinish property in the Loaded event handler of the WizardPage control.
private void WizardPage_Loaded(object sender, RoutedEventArgs e)
{
var page = (WizardPage)sender;
page.AllowFinish = false;
}
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>
Available in R3 2017 Release
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