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.
精彩评论