title: Settings Window design - binding Page to TreeViewItem
body: <p>I'm just starting with WPF (coming from WinForms) and I want to make settings window like the one in Visual Studio. Category tree on left side and appropriate views on the right.</p>
  
  <p>In WinForms I did it by adding to TreeViewItem's TAG name of the window that should be displayed and then in OnClick I was creating that window using reflection. Something like this:</p>
  
  <pre><code>//pseudocode
  TreeViewItem item = CreateTreeViewItem(); 
  item.Tag = "GeneralSettingsWindow";
  item.Text = "General settings";
  ------------------------------------------------------------------------
  void ItemClick(object sender)
  {
      TreeViewItem item = sender as TreeViewItem;
      string formName = item.Tag.ToString();
      BaseSettingsForm f = Activator.CreateInstance(formName);
      settingsPanel.Controls.Clear();
      settingsPanel.Controls.Add(f);
  }
  </code></pre>
  
  <p>And it worked fine.
  I'm curious how can I achieve that functionality using WPF binding. Is it possible anyway?</p>