创建Visual Studio的样式选项/设置对话框 [英] Create Visual Studio style Options/Settings Dialog

查看:719
本文介绍了创建Visual Studio的样式选项/设置对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我在提高我的选择WinForms应用程序对话框的过程。目前我使用的是标签控件。

I am currently in the process of improving my options dialog for a winforms application. At the moment I am using a tab control.

我想创建一个类似于Visual Studio的一个表格/对话框的设置。这是怎么做的?我可以看到像控制一个树状的左侧,但他们使用什么控件来显示每个选项页面,它似乎并没有成为一个标签控件。我希望能够建立控件为每个在设计时设置。

I would like to create a form/dialog for settings that is similar to Visual Studio's. How is this done? I can see a treeview like control on the left hand side but what control are they using to display each of the options pages, it doesn't appear to be a tab control. I would like to be able to build the controls for each of the settings at design time.

感谢。

推荐答案

他们看我像用户控件秒。我不能说他们究竟是如何实现它,但它会很简单建立一个用户控件每个选项的类型和换出电流控制树视图的选择更改时。在你的设计,你只会有的TreeView 和父面板主办的用户控件秒。在运行时需要执行交换。

They look to me like UserControls. I can't say how exactly they implement it, but it would be simple enough to build a UserControl for each option type and swap out the current control when the tree view selection changes. In your designer you would simply have the TreeView and a parent panel to host the UserControls. At runtime you would perform the swap.

这篇关于创建Visual Studio的样式选项/设置对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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