title: WPF Globalization (Perhaps Not)
body: <p>I am trying to build an prototype with labels, buttons, and so on. However, I do want the text in the labels or buttons to be customized through an external files, perhaps a text file or excel file. How can I achieve this?</p>
  
  <p>Currently, I am trying on using a CSV file as in the following format.</p>
  
  <p>Dashboard Title, Dashboard
  Box 1 Column Name, Box 1
  Button 1, Next</p>
  
  <p>And in my codes, I read them into the text field as follows.</p>
  
  <pre><code>string[] lines = File.ReadAllLines("Dashboard.csv");
  for (int i = 0; i &lt; lines.Length; i++)
  {
      string currentLine = lines[i];
      string[] lineValues = currentLine.Split(',');
      switch (i)
      {
          case 0: dashboardTitle.Content = lineValues[1];
          case 1: box1ColName.Content = lineValues[1];
          case 2: button1.Content = lineValues[1];
      }
  }
  </code></pre>
  
  <p>My worry now is that as the number of fields (elements) grow. I would have to extends the switch part perhaps up to case 100? How can I specify them perhaps in the CSV file to fill in the lable, buttons accordingly?</p>