title: WPF Datagrid dropdown box
body: <p>I made a datagrid table with combobox, and i dont have any errors, but when i try to click to edit table i get this errors.
  I am using mahapps.metro. In another empty project witch i create this code works flawless. So where is problem and how should i fix it</p>
  
  <pre><code>An unhandled exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll
  
  Additional information: Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception.
  </code></pre>
  
  <p>And here is problem:     <code>Error 1   The resource "StatusList" could not be resolved.</code></p>
  
  <p>Here is XAML code: </p>
  
  <pre><code>&lt;DataGrid x:Name="dgData" AutoGenerateColumns="False" Margin="169,10,10,227"&gt;
                          &lt;DataGrid.Columns&gt;
                              &lt;DataGridTextColumn Binding="{Binding Subject}" Header="GAME SETTINGS" Width="340"/&gt;
                              &lt;DataGridTemplateColumn Header="" Width="360"&gt;
                                  &lt;DataGridTemplateColumn.CellTemplate&gt;
                                      &lt;DataTemplate&gt;
                                          &lt;TextBlock Text="{Binding Status}"/&gt;
                                      &lt;/DataTemplate&gt;
                                  &lt;/DataGridTemplateColumn.CellTemplate&gt;
  
                                  &lt;DataGridTemplateColumn.CellEditingTemplate&gt;
                                      &lt;DataTemplate&gt;
                                          &lt;ComboBox Height="20" IsEditable="True"
                                        ItemsSource="{StaticResource StatusList}"
                                        SelectedItem="{Binding Status}"/&gt;
                                      &lt;/DataTemplate&gt;
                                  &lt;/DataGridTemplateColumn.CellEditingTemplate&gt;
  
                              &lt;/DataGridTemplateColumn&gt;
  
                          &lt;/DataGrid.Columns&gt;
                      &lt;/DataGrid&gt;
  </code></pre>
  
  <p>And here ic c# code </p>
  
  <pre><code>public MainWindow()
          {
              InitializeComponent();
              this.DataContext = this;
              this.Title += "Vuzimir/Normal - 0/2 - 2.0.14.15";
              List&lt;TicketInfo&gt; ticketsList = new List&lt;TicketInfo&gt; 
              {
                  new TicketInfo{ Subject="Show Ping", Status="True"},
                  new TicketInfo{ Subject="Show Drawings", Status="True"},
                  new TicketInfo{ Subject="Send Debug Messages", Status="True"},
                  new TicketInfo{ Subject="Enable Default Profile", Status="False"}
              };
              dgData.ItemsSource = ticketsList;
  
  
          }
          public class TicketInfo
          {
              public string Subject { get; set; }
              public string Status { get; set; }
          }
  
          public class StatusList : List&lt;string&gt;
          {
              public StatusList()
              {
                  this.Add("True");
                  this.Add("False");
              }
          }
  </code></pre>