title: Change ContentControl content with button click
body: <p>I have a ContentControl which is bound to this DataTemplateSelector:</p>
  
  <pre><code>public class PropertyPageTemplateSelector : DataTemplateSelector
  {
      protected override DataTemplate SelectTemplateCore(object item, DependencyObject container)
      {
          if (item == null) return base.SelectTemplateCore(item, container);
  
          var contentControl = (ContentControl)container;
          var templateKey = (string)item;
  
          return (DataTemplate)contentControl.Resources[templateKey];
      }
  }
  </code></pre>
  
  <p>How can I change the loaded resource in the ContentControl with a button click? I can not call the method directly because it is protected...</p>