I need to know in code whether a regular (non DP) property was directly set for this element in Xaml or in code.
For example, i have a DockPanel with multiple TextBox elements inside, for some elements i set the Width property to some value and for some i don't.
In code i want to iterate all children's of the DockPanel and detect whether the Width property was set directly set on this property, or just it becomes value from the parent (i.e. ActualWidth).
In case of Dependency Properties the answer is very clear, just use ReadLocalValue and check if it returns DependencyProperty.UnsetValue. this answer.
But this Function requires a Dependency property, i need this for regular properties like Width which is a Double.
Any advice?