4

Where would I start looking if I wanted to create my own property grid control in WPF?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
djcouchycouch
  • 12,724
  • 13
  • 69
  • 108

1 Answers1

1

WPF Property Grid as mentioned by @Pop Catalin is good, but is painful to use in an MVVM scenario; databinding only seems to work when the control first loads, once you try binding to another object, it fails. I ended up having to couple my view model to the view to retrieve the property grid and directly set the bound object. Blech!

A better free control is the one included in the Extended WPF Toolkit; it handles the databinding much better, and visually it's nicer too, having picked up a lot of cues from VS 2010's property grid.

John Cummings
  • 1,949
  • 3
  • 22
  • 38
David Keaveny
  • 3,904
  • 2
  • 38
  • 52
  • It is very feature rich as well. Able to create custom editors that target data types or property names or both. You can also define editors in code with attributes or in XAML with dataTemplates. –  Oct 04 '11 at 20:52
  • 1
    The Extended WPF Toolkit is available for free only for non-commercial use: [License](https://github.com/xceedsoftware/wpftoolkit/blob/master/license.md) – Alex Bousso Aug 08 '22 at 05:58
  • it does not answer the question about creating your own property grid – Piotr Golacki Sep 13 '22 at 09:51