File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 2
2
using System . Collections . Generic ;
3
3
using System . Configuration ;
4
4
using System . Data ;
5
+ using System . Globalization ;
5
6
using System . Linq ;
7
+ using System . Threading ;
6
8
using System . Threading . Tasks ;
7
9
using System . Windows ;
10
+ using System . Windows . Markup ;
8
11
9
12
namespace MaterialDesignColors . WpfExample
10
13
{
@@ -13,5 +16,17 @@ namespace MaterialDesignColors.WpfExample
13
16
/// </summary>
14
17
public partial class App : Application
15
18
{
19
+ protected override void OnStartup ( StartupEventArgs e )
20
+ {
21
+ //Illustration of setting culture info fully in WPF:
22
+ /*
23
+ Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR");
24
+ Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR");
25
+ FrameworkElement.LanguageProperty.OverrideMetadata(typeof(FrameworkElement), new FrameworkPropertyMetadata(
26
+ XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));
27
+ */
28
+
29
+ base . OnStartup ( e ) ;
30
+ }
16
31
}
17
32
}
You can’t perform that action at this time.
0 commit comments