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. When Are All DependencyProperties Set

When Are All DependencyProperties Set

Scheduled Pinned Locked Moved WPF
help
2 Posts 2 Posters 28 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.
  • K Offline
    K Offline
    Kevin Marois
    wrote on last edited by
    #1

    I have a CustomControl with three DP's. On startup the change callbacks fire for all three, but I need to know when they have ALL fired, so I can then set up the control using their data. The Initialized gets called first, then the DP's, so I can't rely on that. I was thinking of creating a bool flag for each, and when each are true, then go ahead and load my control using all the DP's, but I'm wondering if there's another way. An event that fires AFTER the DP's would be nice, but I don't see one.

    In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

    realJSOPR 1 Reply Last reply
    0
    • K Kevin Marois

      I have a CustomControl with three DP's. On startup the change callbacks fire for all three, but I need to know when they have ALL fired, so I can then set up the control using their data. The Initialized gets called first, then the DP's, so I can't rely on that. I was thinking of creating a bool flag for each, and when each are true, then go ahead and load my control using all the DP's, but I'm wondering if there's another way. An event that fires AFTER the DP's would be nice, but I don't see one.

      In theory, theory and practice are the same. But in practice, they never are.” If it's not broken, fix it until it is. Everything makes sense in someone's mind.

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #2

      If I understand what you're looking for, I use the control's Loaded event. At that point the control is ready to go and all of the Dependency properties should be set.

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

      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