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
- forced value property system (coercevaluecallback)
- animation
- locally set value
- style trigger
- template trigger
- style setter
- theme style trigger
- theme style setter
- inheritance
- default value
finally validatevaluecallback accepts or discards value if set
this helps
Comments
Post a Comment