1

There are a number of programs nowadays that feature an 'options' dialog where it is possible to apply a search filter. Eclipse, for instance, has this feature in its 'preferences' dialog.

I would like some clues/pointers/whatever as to how to implement this in c#.

Thank you all.

For instance (thanks to helrich)

enter image description here

Deduplicator
  • 44,692
  • 7
  • 66
  • 118
  • are you referring to the common control for file save/open? – Marco A. Sep 26 '14 at 11:08
  • 3
    @MarcoA. I think OP is referring to [this.](http://i.imgur.com/53NuXhV.png) – helrich Sep 26 '14 at 11:19
  • 1
    In winforms you have powerful `PropertyGrid` control. You can wrap your object into `ICustomTypeDescriptor` to display only properties, which names are matching filter. Try googling, perhaps [`this`](http://www.codeproject.com/Articles/2138/Globalized-property-grid) will do. – Sinatr Sep 26 '14 at 14:14
  • @Sinatr. I can see using how a grid could do. But it is a less desirable option, a workaround. The fact is that some folks are somehow searching through strings in the resources files (?) and then selecting the appropriate pages from there. No clue how, though. –  Sep 26 '14 at 19:34
  • 1
    You can use reflection to get list of properties of your configuration class. See [here](http://stackoverflow.com/q/737151/1997232). Once you have a list - you can apply filter to it, but you will have all problems what `PropertGrid` solves: presenting data (including nested data), editors, validations. – Sinatr Sep 30 '14 at 08:45
  • That's clever. Thanks, Sinatr. –  Sep 30 '14 at 10:37

0 Answers0