title: local wpf binding How should be done?
body: <p>guys I wanna use my own "usercontrol" in the main window, but i have problem with this line <code>&lt;local:texttoolbar x:Name="toolbar" DockPanel.Dock="Top"&gt;</code></p>
  
  <p>The name of project is wpfin8 so i put it in the line with namespace </p>
  
  <pre><code>xmlns:local="clr-namespace:wpfin8"&gt;
  </code></pre>
  
  <p>main user control xaml code looks like this </p>
  
  <pre><code>&lt;UserControl x:Class="TextEditor.TextEditorToolbar"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Loaded="UserControl_Loaded"&gt;
  </code></pre>
  
  <p>and the name is texttoolbar.xaml</p>
  
  <p>The piece of mainwindow code is </p>
  
  <pre><code>&lt;Window x:Class="wpfin8.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="MainWindow" Height="350" Width="525"
      xmlns:local="clr-namespace:wpfin8"&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>    &lt;Menu x:Name="menu"
            DockPanel.Dock="Top"&gt;&lt;/Menu&gt;
      &lt;local:texttoolbar x:Name="toolbar" DockPanel.Dock="Top"&gt;
          &lt;ToolBar&gt;
              &lt;Button &gt;open
              &lt;/Button&gt;
              &lt;Button Margin="10,0,0,0"&gt;
                  save
              &lt;/Button&gt;
          &lt;/ToolBar&gt;
      &lt;/local:texttoolbar&gt;
  </code></pre>
  
  <p>I think i did everything properly and it dont want work and it still underlined with this "the name texttoolbar does not exist in the namespace "clr-namespace:wpfin8" " , I've also tried with the "TextEditorToolbar" , "TextEditor"</p>