title: Extend Page class
body: <p>Is it possible to extend the "Page"-class in C#'s WPF-toolkit (or, respectively, any other WPF-class)?
  What i tried to do:</p>
  
  <pre><code>public class ExtendedPage : Page{
     protected void doStuff(){
        // lots of joy n pleasure
     }
  }
  
  public partial class RandomWindow : ExtendedPage{
     private void randomMethod(){
        doStuff(); // causes error
     }
  }
  </code></pre>
  
  <p>The reason I'm asking is pretty obvious: After extending the Page-class (ExtendedPage), the subclass (RandomWindow) has no acces to the methods of its base. 
  This (at least it's my guess) caused by the circumstance of RandomWindow being partial. Since this class unfortunately is generated by WPF (links to the corresponding *.xaml), I'm unable to locate the other part of the partial-class.</p>
  
  <p>This question might lead to a pretty obvious answer that makes me look like a total moron, but apprently I'm unable to figure it out. I might add that I've just started working with C#, my programming origin is Java.</p>
  
  <p>The exact error-message is "Partial declarations of 'type' must not specify different base classes" (CS0263).</p>
  
  <p>As response to one of the comments: The declaration of "Page" in the *.xaml seems to generate an code-behind-file whose base-class is "Page" (and not ExtendedPage). Changing this seems not to work either, the compiler complains about the type ExtendedPage not being found.</p>
  
  <pre><code>&lt;Page x:Class="...RandomWindow" ... /&gt;
  // to
  &lt;src:ExtendedPage x:class="...RandomWindow" 
  xlmns:src="...ExtendedPage" /&gt;
  </code></pre>