Explain DependencyObject GetValue method
Explain DependencyObject GetValue method I am trying to understand value resolution method of Dependency Property. when I look into GetValue method of DependencyObject, I see it is calling return GetValueEntry( LookupEntry(dp.GlobalIndex), dp, null, RequestFlags.FullyResolved).Value; Please refer to https://referencesource.microsoft.com/#windowsbase/Base/System/Windows/DependencyObject.cs,f4481c3e6cb032a5 Inside GetValueEntry method I found following block of code - if (entryIndex.Found) { if ((requests & RequestFlags.RawEntry) != 0) { entry = _effectiveValues[entryIndex.Index]; } else { entry = GetEffectiveValue( entryIndex, dp, requests); } } Please refer to https://referencesource.microsoft.com/#windowsbase/Base/System/Windows/DependencyObject.cs,f4481c3e6cb032a5 As per my understanding, this block of ...