开发者

Creating a WPF property grid?

开发者 https://www.devze.com 2022-12-12 18:25 出处:网络
Where would I start looking if I wanted to 开发者_C百科create my own property grid control in WPF?WPF Property Grid as mentioned by @Pop Catalin is good, but is painful to use in an MVVM scenario; dat

Where would I start looking if I wanted to 开发者_C百科create my own property grid control in WPF?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消