WPF mapping with Dependency properties
-
Hello, I have created a new article Automatic WPF mapping to Database (Access 07 edition)[^] and I would improve some parts if it's possible, I created a list of controls,dependency properties,string like: mapping.CustomAdd(C1_Name,TextBox.TextProperty,"Name"); where the third column is the name of a field and by reflection I get/set the value of the class. My question is: Is too much overheard add dependency properties linked to fields of a custom class? The class has to inherit from control? Any example of implementing it would be great, Thanks
Juan Pablo G.C. Overrider Blog
-
Hello, I have created a new article Automatic WPF mapping to Database (Access 07 edition)[^] and I would improve some parts if it's possible, I created a list of controls,dependency properties,string like: mapping.CustomAdd(C1_Name,TextBox.TextProperty,"Name"); where the third column is the name of a field and by reflection I get/set the value of the class. My question is: Is too much overheard add dependency properties linked to fields of a custom class? The class has to inherit from control? Any example of implementing it would be great, Thanks
Juan Pablo G.C. Overrider Blog
Juan I've added my comments against your article, but I'll reiterate here for anybody who doesn't go over. I'm surprised that this implementation doesn't use MVVM. It would be worth looking to put that into place to make things easier for yourself.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.