I'm new to XAML and Blend. I've been trying to use the Photo Book example included with the software to learn a few things. I saved it as a new project, made changes and was able to get it to compile and run under the new name I gave it. The problem I'm having is I would like to change the photos that are shown. I removed the first photo from the project and replaced it with a different photo from my computer. I named it the same as the removed file. However when I run it the old file still shows up. I'm thinking it is something I'm doing wrong that I will kick myself once I hear it but it is slipping my mind right now.
The Book control has a BookPath propety where you can specify the location of the images. By default this is set to Sample_Photos which is a directory created in the PhotoBook/Bin/Debug folder.
The easiest way to do this is add a new folder to the project and add your images to it. You application exe lies in the PhotoBook\bin\debug folder. So, select the photoBook object and set it's BookPath property to
"..\..\[YouFolderName here]"
This tells it to look for the images folder in the PhotoBook folder. "..\" means one directory up from the current directory.
For a clearer idea look thrugh the CSharp code for the Book class.
The Book control has a BookPath propety where you can specify the location of the images. By default this is set to Sample_Photos which is a directory created in the PhotoBook/Bin/Debug folder.
The easiest way to do this is add a new folder to the project and add your images to it. You application exe lies in the PhotoBook\bin\debug folder. So, select the photoBook object and set it's BookPath property to
"..\..\[YouFolderName here]"
This tells it to look for the images folder in the PhotoBook folder. "..\" means one directory up from the current directory.
For a clearer idea look thrugh the CSharp code for the Book class.