문제

설정 페이지 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