title: Binding to static array in WPF?
body: <p>I want to bind an item source in my WPF to a static array. I have tried to do this by writing:</p>
  
  <pre><code>ItemsSource="{Binding XLTT.Core.Models.names}"
  </code></pre>
  
  <p>But it doesn't work. Why? Additionally, I have seen others bind to objects. Is it ok to bind to a static array or should I be binding to an object instead?</p>
  
  <p>EDIT:</p>
  
  <p>Here is the class with <code>names</code> definition.</p>
  
  <pre><code>namespace XLTT.Core.Models
  {
      internal class TTColumn
      {
          internal string ColumnName;
          internal string ColumnType;
          internal int ColumnOrder;
          internal bool IsRequired;
          internal int ColumnWidth;
  
          public static string[] names = {"Matt", "Joanne", "Robert"};
      }
  }
  </code></pre>