how can i bind Listbox's or texblock's Language attribute (or xml:lang attribute).
i want to show month names in the specific language setting
ex:
<TextBlock x:Name="Date" xml:lang="{Binding Lang}">
<TextBlock.Text>
<MultiBinding StringFormat=" {0:dd.MMM.yyyy}-{1:dd.MMM.yyyy}">
<Binding Path="Date1"/>
<Binding Path="Date2"/>
</MultiBinding>
</TextBlock.Text>
result should be according to Lang property:
01.Apr.2011 - 01.Apr.2011 en-US
or 01.Nis.2011 - 02.Nis.2011 tr-TR
or ....
it gives XamlParseException : Language attribute cannot convert to System.Windows.Markup.XmlLanguage type (that is not exact Error Text. )
Any Idea?