title: C# Class Library project type in Visual Studio missing WPF Resource Dictionary item in menu
body: <p>My code customizes a WPF <code>ListBox</code> object using styles.  I would like to convert this code into a class definition (for reuse).  Since I am not extending the <code>ListBox</code> but only styling it, I am told in various textbooks and by experts that a <em>User Control</em> or a <em>Custom Control</em> is not necessary.  </p>
  
  <p>So, I choose the "C# Class Library" project type from Visual Studio to create the class code.  However, because this type of project is generic and not WPF-specific, when I try to add a Resource Dictionary to my class, that option is missing from the Add menu (see picture).</p>
  
  <p><a href="https://imgur.com/V0Dvurg" rel="nofollow noreferrer"><img src="https://i.imgur.com/V0Dvurg.png" title="Hosted by imgur.com" /></a></p>
  
  <p>This makes me question whether I am on the right track to begin with?</p>
  
  <p>I have checked other related SO questions (such as <a href="https://stackoverflow.com/questions/9605987/insert-a-wpf-resource-dictionary-into-a-class-library-via-visual-studio-2010">this one</a>) but none of them show how to create a WPF-specific class library that is not a user or custom control).</p>
  
  <p>C#, Windows 7, Visual Studio 2010.</p>