使用本机 WPF 控件制作向导的最佳方法是什么

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17418455/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 09:07:26  来源:igfitidea点击:

What is the best way to make a wizard using native WPF controls

wpfwizard

提问by Jahan

I'm new to WPF and never happened the need for me to create a wizard in WPF. I want to know what control to use to make a simple wizard in WPF that I can collect information on each page and finalize an operation in the last page(step). I actually want to make it using native WPF controls. I don't know, like using page navigations or so. Any native wpf ideas?

我是 WPF 的新手,从来没有需要我在 WPF 中创建一个向导。我想知道使用什么控件在 WPF 中制作一个简单的向导,我可以在每个页面上收集信息并在最后一页(步骤)中完成操作。我实际上想使用本机 WPF 控件来制作它。我不知道,比如使用页面导航等等。任何原生 wpf 的想法?

采纳答案by Arushi Agrawal

You can make use of Tab Control for making a wizard.

您可以使用 Tab Control 来制作向导。

For moving to the next screen on a particular index can bind the SelectedIndex property of the tab control to a property in the view model and if you do not wish to display the tab items in UI can set its height to 0.

要移动到特定索引上的下一个屏幕,可以将选项卡控件的 SelectedIndex 属性绑定到视图模型中的属性,如果您不希望在 UI 中显示选项卡项,可以将其高度设置为 0。

回答by d.moncada

Check out the WPF Extended toolkit. It has a built in Wizard control.

查看 WPF 扩展工具包。它有一个内置的向导控件。

Wizard

向导