Is there a wizard control in WPF? [closed]

感情迁移 提交于 2019-11-26 19:23:02

问题


Are there any wizard type controls in WPF? I need functionality where I can go forward and back and use tabs to select a particular item which will show the details of the nested items. I can use the TabControl control but the tab items are dynamic so I cannot nest the region inside the tab item.


回答1:


WPF has a navigation infrastructure built in:

WPF Navigation Overview

Also check out the wizard sample




回答2:


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>



回答3:


You may try open source Avalon Wizard.




回答4:


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




回答5:


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




回答6:


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>


来源:https://stackoverflow.com/questions/287193/is-there-a-wizard-control-in-wpf

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