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

  • SEARCH
  • Home
  • 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 7960745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:50:32+00:00 2026-06-04T04:50:32+00:00

Here, I have a bit confusion about UI language. If language is changed then

  • 0

Here, I have a bit confusion about UI language. If language is changed then what happens? The whole folder gets changed or Culture gets loaded? I cannot get what is actually happening.

  Properties.Strings.MainWindow_Language_Selection_English_Label="English"
  Properties.Strings.MainWindow_Language_Selection_Gujarati_Label="ગુજરાતી"

Please explain what is happening.

  private void LanguageSelection_SelectionChanged(object sender, SelectionChangedEventArgs e)
    {
        ComboBoxItem item = LanguageSelection.SelectedItem as ComboBoxItem;
        if (item.Content.ToString() == Properties.Strings.MainWindow_Language_Selection_English_Label)
        {
            CultureManager.UICulture = new System.Globalization.CultureInfo("en");
        }
        else if (item.Content.ToString() == Properties.Strings.MainWindow_Language_Selection_Gujarati_Label)
        {
            CultureManager.UICulture = new System.Globalization.CultureInfo("gu");
        }

        Settings.Default["UILanguage"] = CultureManager.UICulture.Name;
        Settings.Default.Save();
    }
  • 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-04T04:50:34+00:00Added an answer on June 4, 2026 at 4:50 am

    In general, setting the culture on application thread will be effective on the next form that is displayed, so to make this work you probably need a login/language selection window where you set the main thread’s culture and then show application’s main window.

    There were a few attempts around this to make language selection take effect immadiately (easier in WPF) but this is how it works out of the box.

    In WPF, however, if you are directly binding UI elements to resources you can make the UI update by raising a property change event on your resource property. The easiest way to achieve this (other than creating a new code generator for the .resx file) would be to wrap your resources in a model class like this:

    public class StringRes : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged = delegate {};
    
        public string Login
        {
            get { return Properties.Strings.Login; }
        }
    
        public string Password
        {
            get { return Properties.Strings.Password; }
        }
    
        public void NotifyLanguageChanged()
        {
            PropertyChanged(this, new PropertyChangedEventArgs("Login"));
            PropertyChanged(this, new PropertyChangedEventArgs("Password"));
        }
    }
    
    public class MainWindow
    {
        private StringRes _resources;
    
        private void LanguageSelection_SelectionChanged()
        {
            System.Threading.Thread.CurrentThread.CurrentUICulture = GetCurrentCulture();
            _resources.NotifyLanguageChanged();
        }
    }
    

    If you have bound your UI elements to the instance of the StringRes class, they will be updated when you raise the notification change event in your model.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bit of a pickle here and wonder if anyone can give
I have a bit of a problem here. I have a third party ActiveX
I have a bit of a dilemma here. I have a drupal 7 database
I have a bit of an architecture problem here. Say I have two tables,
Bit of a beginner question here: Say I have a block of xml: <root>
I have a little bit of Javascript that almost works correctly. Here's the code:
I have run into a bit of a problem here: I had a problem-specific
Bit confused here, I have an on-demand instance but do I get charged even
I have backed myself into a a bit of a corner. Here is a
I have a feeling my problem is a bit strange, but here goes... I

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.