title: WPF data binding issue
body: <p>I am just new to WPF.</p>
  
  <p>I have a wpf app and there i simply have a dock panel and inside dock panel i have a textblock.</p>
  
  <p>I want to bind the text property of textblock to my custom object's property but that' not working.</p>
  
  <p>I think i am missing something here but don't know what.</p>
  
  <p>Here is the code snippet.</p>
  
  <p></p>
  
  <pre><code>      &lt;TextBlock Text="{Binding Source=myDataSource, Path=ColorName}"/&gt;
  &lt;/DockPanel&gt;
  </code></pre>
  
  <p>My custom class.</p>
  
  <pre><code>class MyData
      {
          public string ColorName { get; set; }
  }
  </code></pre>
  
  <p>and main window constructor..</p>
  
  <pre><code>public partial class MainWindow : Window
      {
          MyData myDataSource;
          public MainWindow()
          {
              InitializeComponent();
              myDataSource = new MyData { ColorName = "Red" };
      }
  }
  </code></pre>