title: Loading a resource with Findresource throws exception - WPF/C#
body: <p>I am writing a CustomControl in WPF. I have some DataTemplates in my Themes/Generic.xaml, at the resourcedictionary level, with x:Key assigned for them.</p>
  
  <p>Now from within the same control class code, i want to find and load that resource so i can dynamically assing to something in the code.</p>
  
  <p>I have tried base/this.FindResource("keyvalue"), this.Resources[""] etc.</p>
  
  <p>It keeps returning that the resource is not found and hence null.</p>
  
  <p>The resource is defenitely there in the generic.xaml. </p>
  
  <p>Please help.</p>