I have a Dictionary object in my ViewModel with key/values that translate words on the View.
It is possible to get the language information as an XML object and then pick out the translated phrase with XPath, something like this:
<TextBlock DataContext="{TranslatorDictionaryXml}" Text="{Binding XPath=/terms/term[key='edit']/value[@lang='en-US']}"/>
But is there a similar way to do this with a non-XML object which offers some kind of XPath-like syntax, e.g.
PSEUDO-CODE:
<TextBlock DataContext="{CurrentLanguageTranslatorDictionary}" Text="{Binding path=Key['edit']}"/>
I don't want to bind a collection to a ListView or any other collection element, but want to bind the one Translator object to individual TextBlocks and TextBoxes and ToolTips, etc. and then use some kind of path syntax to get a particular item out of the bound collection.
Is this possible?