Code sample: TranslateExtension.cs::TranslateKeys(UIElement)

Jun 6, 2010 at 5:29 PM

There is a line like this within the sample code (line 95 and 96):

if (element is FrameworkElement && ((FrameworkElement)element).Name == "lblLocale")
                root = root;

What is this thought of?

Jul 26, 2010 at 2:31 PM

Hi TrostenR,

This is a hack, lblLocale is a label provided in the exemple package, I think it was managed differently cause it containe a child element of type System.window.Document.Run

Cheers,

Abdelkader