title: WPF Error: Do not recognize or can not access the member "resource"
body: <p>Ok, I have to say that I just started using WPF and I know nothing about XAML, so for my first project with WPF, I'll be trying to build my own app for my own buisness, But im getting a problem trying to get an image resource. </p>
  
  <p>This is what I tried</p>
  
  <pre><code>&lt;Window x:Class="MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="MainWindow" Height="605.027" Width="1042.214" WindowStyle="None" Background="{StaticResource Circuits}"&gt;
      &lt;Application.resource&gt;        
          &lt;ImageBrush x:Key="Circuits" ImageSource="Circuits.jpg"/&gt;
      &lt;/Application.resource&gt;   
  &lt;/Window&gt;`
  </code></pre>
  
  <p>But at the <code>&lt;Application.resource&gt;</code> line I'm getting the error </p>
  
  <blockquote>
    <p>Do not recognize or can not access the member "resource"</p>
  </blockquote>
  
  <p>and I just dont know what to do</p>