title: Custom Baseclass for WPF-Control
body: <p>I've created a CustomControl for my Project and I'm going to create some more. All these Controls will have something in common, so i created an abstract class which inherits from UserControl.</p>
  
  <p>If I create a CustomControl via VisualStudio it also inherits from UserControl and I can't switch that to my abstract UserControl because VisualStudio will add some generated code files. I don't want to mess with these files.</p>
  
  <p>I could just create a empty code file and write everything on my own, but then I can't use XAML(or I just don't know how yet).</p>
  
  <p>So how do I create a CustomControl with a custom base class without losing XAML?</p>