Arijit Naskar

Arijit Naskar

  • NA
  • 7
  • 4.7k

Custom Control Creation in WPF.

May 18 2012 4:32 AM
Hi All,
This is my First post.
I am now working on a WPF application where I need to have a custom datetime picker where the format will be comming from a configuration file and I want the date time format should be taken form the configuratioin not form the system culture.
 We dont want any Thread related activety thats why I don't want to go with the following approch.

CultureInfo ci = new CultureInfo(Thread.CurrentThread.CurrentCulture.Name);
ci.DateTimeFormat.ShortDatePattern = "DD/MM/YYYY"; //It will come form the Configuration file.
Thread.CurrentThread.CurrentCulture = ci;


The above approch is not acceptable.


Cna any one help me On this Issue.??


Thanks for looking into My Issue.
Arijit


Answers (1)