title: Difference between Control Template and Data Template in wpf
body: <p>Can someone elaborate the difference between <code>ControlTemplate</code> and <code>DataTemplate</code> in wpf?</p>
  
  <p>What should one use in case of custom controls? Like for example a <code>StackPanel</code> which possibly has an <code>image</code> and a <code>TextBox</code>?</p>
  
  <p>It seems confusing in some cases where you define a custom control using the 'Content' property.</p>
  
  <p>It would be great if an example of how each can be used in different scenarios can be provided.</p>