Another problem occured, when i try and set the UICultureInfo anf CultureInfo of the CurrentThread, the Calender controls do change, but when i read from the UICulture in another class it just sais english all the time,... is this a bug or am i doing somathing
wrong... ?
Thanks for the reply, i checked the id's the one is running a service so i could have known that, so thanks, but now im trying to get the forst thread which is running the SL app, and read the cultureinfo from there, so you wouldnt know how one would get that
info do you ?
Here's what i am doing, and it's not working quite like i would it to be...
//Process thisProc = Process.GetCurrentProcess();
//ProcessThreadCollection myThreads = thisProc.Threads;
//String UICultureString = "";
//foreach (ProcessThread pt in myThreads)
//{
// if (pt.Id == 1)
// {
// Thread t = (Thread)pt.;
// }
//}
Galo
Member
39 Points
72 Posts
CultureInfo
Jul 29, 2008 12:10 PM | LINK
Hi,
Another problem occured, when i try and set the UICultureInfo anf CultureInfo of the CurrentThread, the Calender controls do change, but when i read from the UICulture in another class it just sais english all the time,... is this a bug or am i doing somathing wrong... ?
Some help would be appreciated...
SilverlightShow
Participant
1145 Points
194 Posts
Re: CultureInfo
Jul 29, 2008 12:49 PM | LINK
Hi Galo,
Try to see if the current thread is the same in both cases. You can check Thread's value of the property ManagedThreadId like this:
int
threadId = System.Threading.Thread.CurrentThread.ManagedThreadId;Good luck!
SilverlightShow Team,
www.SilverlightShow.net - Silverlight and WP7 tutorials, articles, news
Galo
Member
39 Points
72 Posts
Re: Re: CultureInfo
Jul 29, 2008 01:26 PM | LINK
Thanks for the reply, i checked the id's the one is running a service so i could have known that, so thanks, but now im trying to get the forst thread which is running the SL app, and read the cultureinfo from there, so you wouldnt know how one would get that info do you ?
Here's what i am doing, and it's not working quite like i would it to be...
//Process thisProc = Process.GetCurrentProcess();
//ProcessThreadCollection myThreads = thisProc.Threads;//String UICultureString = "";
//foreach (ProcessThread pt in myThreads)
//{
// if (pt.Id == 1)
// { // Thread t = (Thread)pt.; // } //}
Tanks again!
Galo
Member
39 Points
72 Posts
Re: Re: Re: CultureInfo
Jul 29, 2008 01:45 PM | LINK
Never mind it already works, i just send the culture along to the service :) thanks a mil
SilverlightShow
Participant
1145 Points
194 Posts
Re: Re: Re: Re: CultureInfo
Jul 29, 2008 02:04 PM | LINK
ok Galo, glad that you've made it. [:)]
SilverlightShow Team,
www.SilverlightShow.net - Silverlight and WP7 tutorials, articles, news