title: Binding to array-backed properties
body: <p>I'm trying to build a custom control for the Windows Phone 7 platform.  So far I have the property defined and it works fine if it's a simple type (like a string), but this ultimately needs to be an array.  So I define my property like this:</p>
  
  <pre><code>    #region Keywords
  
      public string[] Keywords
      {
          get { return (string[])GetValue(KeywordsProperty); }
          set { SetValue(KeywordsProperty, value); }
      }
  
      public static readonly DependencyProperty KeywordsProperty =
          DependencyProperty.Register(
              "Keywords",
              typeof(string[]),
              typeof(MyType),
              new PropertyMetadata(null));
  
      #endregion Keywords
  </code></pre>
  
  <p>Now I want top support binding and XAML, but I can't figure out how to set the property via XAML.  Is there a better way to do this?</p>