title: C# WPF specify folders in XAML style
body: <p>I have a project with the following structure:</p>
  
  <pre><code>Proj
  ├──Views
  ├   ├──Dashboard.xaml
  ├   ├──Dashboard.cs
  ├
  ├──Styles
      ├──DashboardStyle.xaml
  </code></pre>
  
  <p>In my <code>DashboardStyle.xaml</code>, I have this code:</p>
  
  <pre><code>&lt;ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                  xmlns:local="clr-namespace:Proj.Styles"&gt;
  
      &lt;Style x:Key="MyWindowStyle" TargetType="local:Proj/Views/Dashboard"&gt;
          ....
          ....
      &lt;/Style&gt;
  
  &lt;/ResourceDictionary&gt;
  </code></pre>
  
  <p>But it gives the error:</p>
  
  <blockquote>
    <p>The name "Proj/Views/Dashboard" does not exist in the namespace "clr-namespace:Proj.Styles"</p>
  </blockquote>
  
  <p>How can I resolve this issue?</p>