I added a png file using Resources.resx, its in a folder called resources. I am trying to change my main windows background to the image.
this.Background = Properties.Resources.backGround;
gives cannot implicitly convert type System.Drawing.Bitmap to System.Windows.Media.Brush
I have tried to follow other answers that I found such as
this.Background = new ImageBrush(new BitmapImage(new Uri(@"pack://application:,,,/myapp;component/Images/icon.png")));
but I honestly cant figure out how to use the @"pack... etc" I have tried something like this
@"pack://Info Collector:,,,/myapp;component/resources/backGround.png")));
but again I cant find any good resources that explain the line.
Thank you in advanced.