良好的模式建立一个向导? [英] Good patterns for building a wizard?

查看:106
本文介绍了良好的模式建立一个向导?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常使用的TabControl 并以某种方式隐藏的选项卡,并通过他们浏览。

I usually use a TabControl and somehow hide the tabs and navigate through them.

我很好奇这样做的其他方式!

I am curious about other ways of doing this!!!

推荐答案

您可以使用的 面板 对象,所有但第一小组有他们的可见属性设置为

You could use a collection of Panel objects, with all but the first panel having their Visible property set to false.

存储当前面板的指数,并具有下一步和上一个按钮,适当地改变这个指标。当这个指标发生变化,做出相应的面板可见/不可见,因为需要(只有当前面板应该是在给定时间可见)。

Store the index of the current panel, and have "Next" and "Previous" buttons that change this index appropriately. When this index is changed, make the appropriate panels visible/not visible as needed (only the current panel should be visible at a given time).

您也可以处理 IsVisibleChanged在上的一些事件/所有的面板,来触发某些行为,当用户导航到一个特定的面板出现。

You can also handle the IsVisibleChanged event on some/all of your panels, to trigger certain behaviors to occur when the user navigates to a particular panel.

这篇关于良好的模式建立一个向导?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆