Is there a wizard control in WPF? [closed]

只谈情不闲聊 提交于 2019-11-27 18:09:34

WPF has a navigation infrastructure built in:

WPF Navigation Overview

Also check out the wizard sample

Another simple way I have used for a basic Wizard is to use multiple Grids and change the Visibility properties when the buttons are clicked, using an int to keep track of the 'step number'

    <Grid Name="Page1">
        <TextBlock>Page 1</TextBlock>
    </Grid>

    <Grid Name="Page2" Visibility="Hidden">
        <TextBlock>Page 2</TextBlock>
    </Grid>
Pavel

You may try open source Avalon Wizard.

Rashad Annara

Check This link. you can create wonderful wizard using extended wpf toolkit.

Found this great example on codeproject that should give you everything that you need:

http://www.codeproject.com/Articles/31837/Creating-an-Internationalized-Wizard-in-WPF

MVVM Wizard - Usage like this (Requires DI container, views are created on first navigation)

<controls:Wizard>
    <controls:WizardStep ViewType="{x:Type test:View1}"  />
    <controls:WizardStep ViewType="{x:Type test:View2}" />
    <controls:WizardStep ViewType="{x:Type test:View3}" />
</controls:Wizard>

or like this (no DI is required, but creates all views straight away)

<controls:Wizard>

    <controls:WizardStep>
        <test:View1 />
    </controls:WizardStep>

    <controls:WizardStep>
        <test:View2 />
    </controls:WizardStep>

    <controls:WizardStep>
        <test:View3 />
    </controls:WizardStep>

</controls:Wizard>
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!