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:
You may also consider rolling your own Wizard control. It isn't that difficult! The following posts should be helpful: WPF Wizard Control Part I and WPF Wizard Control Part II
回答7:
Have a look at http://avalonwizard.codeplex.com/
回答8:
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>