title: Changing content of Window (WPF)
body: <p>I've created a simple WPF application which has two Windows. The user fills in some information on the first Window and then clicks Ok which will take them to the second Window. This is working fine but I'm trying to incorporate both Windows into a single Window so just the content changes.</p>
  
  <p>I managed to find this <a href="https://stackoverflow.com/questions/5131591/resource-management-when-changing-window-content">Resource management when changing window content</a> which seems like it is what I'm after. However, I've search for ContentPresenter but couldn't find much help for how I need to use it. For example, if I use a ContentPresenter, where do I put the existing XAML elements that are in the two Windows? I'm guessing the first Window will go into the ContentPresenter but the second one will need to be put somewhere for when it needs to be switched in. </p>
  
  <p>Any help would be great. A simple working example would be even better. </p>
  
  <p>TIA</p>