This project is read-only.

PropertyGrid: Support scaffolding


NuGet packages can register powershell commands, for example there is a MvcScaffolding nuget for ASP.NET MVC.
It would be nice if your nuget came with something like PropertyGrid-Scaffold command that for given class would produce static XAML equivalent to what would be generated at runtime by PropertyGrid. In other words it should create in-memory instance of PropertyGrid for given class and dump visual tree to Xaml file (with some processing).


objo wrote Feb 14, 2012 at 5:11 AM

Cool idea :) But when you have converted to the static XAML you won't need the PropertyControl (and probably not the assembly, so it should be removed). Then I think this should be a visual studio extension, and not included in the nuget package!

mwisnicki wrote Feb 14, 2012 at 8:44 AM

VS extensions do not work with Express editions while NuGet does to a certain extent. Both can be provided of course. I think it is also possible to add context menu item in designer to transform PropertyControl into plain XAML.

While such transformation would get rid of PropertyControl, removing whole assembly is not really an option - many uses of it will and should remain, like your type specific editors (color pickers etc.).