title: How do I set background image to a Canvas
body: <p>Wpf Canvas Background image does not display selected image from local path</p>
  
  <p>XAML Code</p>
  
  <pre><code>  &lt;Canvas x:Name="LayoutRoot" Margin="485,24,0,0" HorizontalAlignment="Left" Width="341" Height="506" VerticalAlignment="Top"&gt;
                  &lt;Canvas.Background&gt;
                      &lt;ImageBrush ImageSource="{Binding BGImage}"/&gt;
                  &lt;/Canvas.Background&gt;
              &lt;/Canvas&gt;
  </code></pre>
  
  <p>MVVM code</p>
  
  <pre><code>private String _BGImage = @"‪C:/Users/sam/Desktop/photo-5.jpg";
  
  public String BGImage
      {
          get
          {
              return this._BGImage;
          }
          set
          {
              this._BGImage = value;
              NotifyPropertyChanged("BGImage");
          }
      }
  </code></pre>
  
  <p>Why this image not display on canvas background</p>