Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

FrameworkElement.LanguageProperty.OverrideMetadata

$
0
0

Hi,

as suggested in many articles I use

FrameworkElement.LanguageProperty.OverrideMetadata(typeof(FrameworkElement),new FrameworkPropertyMetadata(XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));

in the startup event to set the culture of my WPF application.
However, this only works for the UI in my EXE project. It does not work for UserControls that originate from DLL projects. I don't know if it makes a difference but I'm using PRISM and I'm loading my UserControls by the help of MEF (Managed Extensibility Framework). The WPF UserControls from my DLL projects seem to ignore the culture.

Thanks for any ideas,
Guido

 


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>