title: Custom Control in WPF
body: <p>I have just started to learn WPF.</p>
  
  <p>I have a button with image. like <code>Image+Text</code></p>
  
  <pre><code>    &lt;Button Height="67" Name="Button1" Width="228" HorizontalContentAlignment="Left"&gt;
          &lt;StackPanel Orientation="Horizontal" &gt;
              &lt;Image Source="Images/add.png" Stretch="Uniform"&gt;&lt;/Image&gt;
              &lt;TextBlock Text="  Create Company" VerticalAlignment="Center" FontSize="20"&gt;&lt;/TextBlock&gt;
          &lt;/StackPanel&gt;
      &lt;/Button&gt;
  </code></pre>
  
  <p>Now I want to add many more buttons in the above format.
  So I have to write the same code again and again.</p>
  
  <p>So I decided to have a customButton to do my job easily.
  I tried to create the custom control.</p>
  
  <p>I added a property named Image there.
  Now how should I give value to that property?</p>
  
  <p>Am I going on the wrong way?</p>