我有一个设置页在c#中建立,我想在2种方式定制它。

  1. 我希望以不同的顺序排序的不同设置,这些顺序不是字母
  2. 我想通过其他设置的值启用/禁用某些设置的编辑。

    是否有可能使用设置页面执行此操作,或者我需要设计自定义控制?

    谢谢!

有帮助吗?

解决方案

If you are using the PropertyGrid control you can read up on how to customise it here and here.

In order to display properties some of the time you can implement the ICustomTypeDescriptor interface by doing this you will be able to control the order and the list of properties to be edited dynamically.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top