开发者

Creating a dynamic CRUD UI in WPF

开发者 https://www.devze.com 2023-02-02 04:06 出处:网络
I am trying to make a simple application to test out some CRUD code that we have written. I want the data entry UI to be built dynamically from the object that is being entered.

I am trying to make a simple application to test out some CRUD code that we have written. I want the data entry UI to be built dynamically from the object that is being entered.

For e.g If its an ICustomer object 开发者_JS百科which has properties for Name, collection of IOrders and some more properties. The definitions for these interface exist in a separate dll.

Could you please suggest me a good approach to use for achieving this? I can think of using Reflection to dynamically create the UI (through code instead of XAML). Would that be a good practice?


You can use DataForm for WPF on CodePlex that behaves similar to DataForm from The Silverlight Toolkit.

It auto-generates a data-entry form when you bind an object to it.

0

精彩评论

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