inheritance - WPF: How can I find the source of an inherited property value -


i've been working on wpf-project has nick can't seem grasp: there couple of controls include other controls , styled style-definition in resource dictionary. 1 of inner controls label. label has inherited padding of 5.

the label has no styling defined, let alone padding. , it's indicated inherited, can't find padding coming from. so, question is: how can figure out value inherited from?

as michiel m said dependencypropertyhelper.getvaluesource way go.

there distinct order of evaluation value can originate:

most important on top

  1. forced value property system (coercevaluecallback)
  2. animation
  3. locally set value
  4. style trigger
  5. template trigger
  6. style setter
  7. theme style trigger
  8. theme style setter
  9. inheritance
  10. default value

finally validatevaluecallback accepts or discards value if set

this helps


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -