Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8890049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:24:40+00:00 2026-06-14T22:24:40+00:00

I have been searching for something which might help me to resolve our current

  • 0

I have been searching for something which might help me to resolve our current issues with cultures in an MVVM Prism setup using WPF and Silverlight.

Our setup requires us to have a central server which is setup using en-gb culture and database language of us-english, this is used by the Silverlight system with no issues as we handle the differences in cultures by passing the users CultureInformation with the service call allowing us to process an values within the XML by using double.parse(value, userCulture), this also allows us the pass the values back. We also support an offline version of the software with its own local database which shares a subset of data with the online version, this is updated using the softwares internal update functionality.

If I retrieve XML data back from my database it is in the following example format

<code>
<Pipe>
 <RowNumber>1</RowNumber>
 <Standard>Schedule</Standard>
 <Size>125</Size>
 <DN>DN125</DN>
 <TransDN>DN125</TransDN>
 <Inches>5"</Inches>
 <Designation>40</Designation>
 <IntDia>128.20</IntDia>
 <OutDia>141.30</OutDia>
 <Wall>6.5500</Wall>
 <Area>1.290820730000000e002</Area>
</Pipe>
</code>

This then causes an issue in the following two scenarios:
If the user is running the software locally they will access the dlls directly and may potentially try and parse the above numerical values using the machines local culture settings. In the case of Spain for example this will reverse the use of the , and . values in numerical fields. This results in the IntDia value coming back as 12820,00.

I can specify the details each time I want to retrieve XML data, however I was wondering if there was a cleaner way for us to handle this scenario so we might return the xml data in the correct culture.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T22:24:42+00:00Added an answer on June 14, 2026 at 10:24 pm

    In case anyone has this problem in the future I had to find an alternative approach.

    I instead opted to run the service under a separate thread where I could specify the Threads culture to be CultureInvariant

            var task = Task.Factory.StartNew(() =>
            {
                Thread.CurrentThread.Name = "GetDetailsAsync";
                Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
    
                var uD = details.GetDetails(userName, password, cultureDetails);
                this.dispatcher.BeginInvoke((Action)
                    (() => completedAction.Invoke(this, new GetDetailsCompletedEventArgs(new object[] { uD }, null, false, null))));
            });
    
            task.ContinueWith(
                s =>
                {
                    task.Dispose();
                    Debug.WriteLine("GetDetailsAsync thread disposed.");
                });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been searching for a command that will return files from the current
I have been searching high and low for help regarding binding html content to
I have been searching for this online, but I can't seem to find something
Have been searching how to convert a dictionary to a string. But the results
I have been searching in stackoverflow for a question similar to mine because it
I have been searching several days for an example of how to make a
I have been searching for a solution to this and so far found nothing
I have been searching for quite a bit now but I have never been
I have been searching for how to create an animated widget. I have found
I have been searching for and have not located (I fear it doesn't exist)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.