mercredi 6 mai 2015

make image background without using full path

i want to make an image a background to my project ,i used Imagebruch using this xaml code:

 <Window.Background>
        <ImageBrush ImageSource="C:\Users\ASUS\Documents\Visual Studio 2013\Projects\anlysis\anlysis\Images/GeneralWay.jpg"></ImageBrush>
    </Window.Background>

is there a way to use this feature without using the full path and just use image name? please help me..

Aucun commentaire:

Enregistrer un commentaire