title: WPF: Basic question about Dependency Properties
body: <p>I have the following Xaml in a <code>Window</code> (<code>ArtistInfo</code>):</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;TextBlock Text="{Binding Artist.Name}"&gt;&lt;/TextBlock&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>And this is the code-behind for the same window (<em>code simplified for question's sake</em>):</p>
  
  <pre><code>public static readonly DependencyProperty ArtistProperty = 
          DependencyProperty.Register("Artist", typeof(Artist), typeof(ArtistInfo));
  
  Artist Artist {
      get {
          return (Artist)GetValue(ArtistProperty);
      }
      set {
          SetValue(ArtistProperty, value);
      }
  }
  
  public ArtistInfo() {
      InitializeComponent();
  }
  public ArtistInfo(int artistID) {
      InitializeComponent();
      Artist = GetArtist(artistID);
  }
  </code></pre>
  
  <p>Basically what I'm trying to do is data binding to a Dependency Property, so that when <code>Artist</code> is populated (in the constructor), the <code>TextBlock</code> gets filled with the Artist's name.</p>
  
  <p>What am I missing here? </p>