TranslateExtension - Walking the Visual Tree

Apr 3, 2012 at 5:23 PM
Edited Apr 3, 2012 at 5:23 PM

Hi,

I don't understand why it's necessary to walk the visual tree each time the Translate attached property changes on an element. AFAICT this is done to get the values of the TranslateResourceSet and TranslateResourceAssembly attached properties, which are typically defined on an ancestor of the element the Translate attached property is applied to. If that's the case then just make the TranslateResourceSet and TranslateResourceAssembly attached properties inheritable (value inheritance works on attached properties). Also, there seems little point in deriving TranslateExtension from DependencyObject since the only dependency properties it registers are attached.

Am I missing something?