c# - wpf element name as an argument for IValueConverter -


i trying multilingual translation("label or caption") string value given elementname in wpf. example; elementname "txtdescription" ; ivalueconverter implementation return "description" ; language return different translation string(i.e. descripciĆ³n spanish) , translation string text=... of same element.

i new wpf; cant make work. there elegant way similiar manner below.

<textblock name="txtdescription" text="{binding converter={staticresource multilingualconverter} }"</textblock> 

if not simple or requires more code alternative sending "txtdescription" argument multilingualconverter acceptable dont how neither.

definitely, should build localization support in system, better using converter every string.

until today, best solution have found , use this:

http://blogs.microsoft.co.il/tomershamam/2007/10/30/wpf-localization-on-the-fly-language-selection/

give try. luck


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -