Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET Forms Abstraction for WPF, Silverlight, Winforms, WebForms, etc

Anyone know of a project(s) that seek to abstract form definitions on level higher than WPF, Silverlight, Winforms, WebForms, etc...

I'm working on a project where we are fixing up 16 somewhat simple WebForms. But we may convert (and probably will convert to WPF or Silverlight 3 to 4 months from now.

I'd rather define these forms once and be done with it. I'm willing to write a small DSL to help define forms, subforms, validation, links, and popups. I'm only looking to solve this for 80% or 90% of the forms. Four are very complicated and I'm willing to hand code these.

I guess I'm looking for something like what XUL had hoped to be.

like image 569
BuddyJoe Avatar asked Aug 03 '26 14:08

BuddyJoe


1 Answers

The Model View Controller pattern comes in handy here (not ASP.NET MVC).

Your model and controller are standard classes. You should define a view as an interface IView because you will have to subclass from other parts of the Framework.

like image 182
James Westgate Avatar answered Aug 06 '26 08:08

James Westgate



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!