I am trying to set the background of a programmatically created Canvas, Using the following method:
Canvas Object = new Canvas();
Object.Background = new ImageBrush(new BitmapImage(new Uri("pages/Asset/Untitled 6.png", UriKind.Relative)));
This URI WOULD WORK In XAML, for setting a background image however in C# the scope seems to be in a different folder.