Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Model View View Model TOO MANY PROPERTIES!!!!!
3 replies. Latest Post by Zachary D. on January 12, 2009.
(0)
Zachary D.
Member
77 points
187 Posts
01-09-2009 4:36 PM |
I have a form with 100 textboxes.
Depending on the circumstances certain textboxes are Read-Only.
Do I really have to databind 100 properties that I create in the viewmodel to each of the IsReadOnly Properties of the textboxes?
Is there a better way? There must be a better way this is going to take forever...
prujohn
Contributor
3567 points
703 Posts
01-09-2009 4:39 PM |
Just throwing out an idea. Create your own textbox (derive from TextBox) with the properties already bound?
ccoombs
5122 points
755 Posts
01-09-2009 4:40 PM |
you could use a datagrid with a custom column, or add the textboxes dynamically via a loop in code.
01-12-2009 11:00 AM |
I would still end up with 100 properties in teh viewmodel