title: I can't import images to the background
body: <p>My problem that I cannot use the image background in my resource but if I use the Directory from the different folder the background work fine. So what should I do?</p>
  
  <p>Here is my code and the error message from visual studio.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Window x:Class="Jan1_Launcher.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
          xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
          xmlns:local="clr-namespace:Jan1_Launcher"
          mc:Ignorable="d"
          Title="Jan1" Height="350" Width="525"&gt;
      &lt;Window.Background&gt;
          &lt;LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"&gt;
              &lt;GradientStop Color="Black" Offset="0"/&gt;
              &lt;GradientStop Color="#FF4F1212" Offset="1"/&gt;
          &lt;/LinearGradientBrush&gt;
      &lt;/Window.Background&gt;
      &lt;Grid x:Name="Name"&gt;
          &lt;Grid.Background&gt;
              &lt;ImageBrush ImageSource="a.png"/&gt;
          &lt;/Grid.Background&gt;
          &lt;Grid.ColumnDefinitions&gt;
              &lt;ColumnDefinition/&gt;
          &lt;/Grid.ColumnDefinitions&gt;
          &lt;Label x:Name="Game_Name" Content="Jan 1 Survival Game" HorizontalAlignment="Left" Height="24" Margin="21,10,0,0" VerticalAlignment="Top" Width="125"/&gt;
          &lt;Label x:Name="label" Content="Patch 0.0.1" HorizontalAlignment="Left" Height="24" Margin="134,16,0,0" VerticalAlignment="Top" Width="69"/&gt;
          &lt;Button x:Name="UpdateBut" Content="Download Update" HorizontalAlignment="Left" Height="34" Margin="58,247,0,0" VerticalAlignment="Top" Width="145" IsDefault="True" Click="UpdateBut_Click"/&gt;
          &lt;Button x:Name="PlayBut" Content="Play" HorizontalAlignment="Left" Height="34" Margin="322,247,0,0" VerticalAlignment="Top" Width="145" Click="PlayBut_Click" Background="#FF111111" BorderBrush="Black" OpacityMask="Black" Foreground="White" FontSize="14" FontFamily="Arial"/&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>Error Message:</p>
  
  <blockquote>
    <p>An unhandled exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll</p>
    
    <p>Additional information: 'Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.' Line number '17' and line position '14'.</p>
  </blockquote>