I would like to display in the main page of my app the date in the french format: (dd/MM/yyyy) I work with Entity Framework objects and dates are properties of an entity list which is binded to a combobox in the xaml file.
I manage to get through this by adding this code when my app starts:
FrameworkElement.LanguageProperty.OverrideMetadata(typeof(FrameworkElement), new FrameworkPropertyMetadata(XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));
BUT I get a new problem with this add : All my decimal numbers use comma instead of using dot in the other pages of my app...ma app doesn't work anymore with this change...
So could you give me a solution which solve the problem in a global way... To summarize I need French Date format and decimal with dot. I would prefer to not have to change the culture for each line of my code.
I already tried to add this line in the concerned page but It didn't work.
Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
Thanks