title: Initialize an array from XAML at runtime
body: <p>I'd like to initialize an array from XAML in runtime, sort of like on Android.
  I've tried doing it like this:</p>
  
  <pre><code>&lt;ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:coll="clr-namespace:System.Collections;assembly=mscorlib"&gt;
  
  &lt;coll:ArrayList x:Key="Hello"&gt;&lt;/coll:ArrayList&gt;
  </code></pre>
  
  <p></p>
  
  <p>But when I try to load it from XAML like this </p>
  
  <pre><code> new ResourceDictionary { Source = new Uri("Commands/MPC/resources.xaml", UriKind.Relative) }
  </code></pre>
  
  <p>I get an exception. Not sure if I'm doing that right.</p>