Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

CultureInfo RSS

4 replies

Last post Jul 29, 2008 02:04 PM by SilverlightShow

(0)
  • Galo

    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...

    Foo Bar this
  • SilverlightShow

    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!

    (If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

    SilverlightShow Team,
    www.SilverlightShow.net - Silverlight and WP7 tutorials, articles, news
  • Galo

    Galo

    Member

    39 Points

    72 Posts

    Re: Re: CultureInfo

    Jul 29, 2008 01:26 PM | LINK

    hey,

    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!

    Foo Bar this
  • Galo

    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

    Foo Bar this
  • SilverlightShow

    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. [:)]

    (If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

    SilverlightShow Team,
    www.SilverlightShow.net - Silverlight and WP7 tutorials, articles, news