Question

J'ai un Page de paramètres construite en C # et je voudrais le personnaliser de 2 façons.

  1. J'aimerais que les différents paramètres soient triés dans un ordre particulier qui n'est pas alphabétique
  2. J'aimerais activer / désactiver l'édition de certains paramètres en fonction des valeurs d'autres paramètres.

    est-il possible de le faire avec une page de paramètres ou dois-je concevoir un contrôle personnalisé?

    merci!

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top