title: How to call new ViewTemplate in AvalonDock?
body: <p>I am able to create new ViewTemplate:</p>
  
  <pre><code>class SearchViewModel : ToolViewModel//I make SearchViewmodel to inherit from ToolViewModel
  {
      public DataTemplate SearchViewTemplate
      {
          get; set;
      }
  
      public override System.Windows.DataTemplate SelectTemplate(object item, System.Windows.DependencyObject container)
      {
          //The code omitted for brevity...
      }
  }
  </code></pre>
  
  <p>and SearchViewTemplate:</p>
  
  <pre><code>&lt;avalonDock:DockingManager.LayoutItemTemplateSelector&gt;
    &lt;local:PanesTemplateSelector&gt;
       &lt;local:PanesTemplateSelector.FileViewTemplate&gt;
           ...//The code omitted for brevity...
       &lt;/local:PanesTemplateSelector.FileViewTemplate&gt;
    &lt;local:PanesTemplateSelector.FileStatsViewTemplate&gt;
           ...//The code omitted for brevity...
    &lt;/local:PanesTemplateSelector.FileStatsViewTemplate&gt;
       &lt;local:PanesTemplateSelector.SearchViewTemplate&gt;
          &lt;DataTemplate&gt;
             &lt;TextBlock Text="Hello World!:)"/&gt;
          &lt;/DataTemplate&gt;
       &lt;/local:PanesTemplateSelector.SearchViewTemplate&gt;
    &lt;/local:PanesTemplateSelector&gt;
  </code></pre>
  
  <p></p>
  
  <p>Code to show SearchViewTemplate Workspace.cs:</p>
  
  <pre><code>    SearchViewModel _searchViewModel = null;
      public SearchViewModel SearchHelper
      {
          get
          {
              if (_searchViewModel == null)
                  _searchViewModel = new SearchViewModel();
  
              return _searchViewModel;
          }
      }
  </code></pre>
  
  <p>XAML to call template:</p>
  
  <pre><code>&lt;MenuItem Header="Tools"&gt;
     &lt;MenuItem Header="Properties" IsChecked="{Binding FileStats.IsVisible, Mode=TwoWay}" IsCheckable="True"/&gt;
     &lt;MenuItem Header="Search Window" IsChecked="{Binding SearchHelper.IsVisible, Mode=TwoWay}" IsCheckable="True"/&gt;
  &lt;/MenuItem&gt;
  </code></pre>
  
  <p>However, TextBlock with Text="Hello World!:)" is not shown.
  How to show newly created ViewTemplate?</p>