Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. WPF mapping with Dependency properties

WPF mapping with Dependency properties

Scheduled Pinned Locked Moved WPF
questioncsharpdatabasewpfcom
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Juan Pablo G C
    wrote on last edited by
    #1

    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

    P 1 Reply Last reply
    0
    • J Juan Pablo G C

      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

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      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.

      My blog | My articles | MoXAML PowerToys | Onyx

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups