This is how you add and use pictures in Your App:
2. Save Locally
3. Create a folder in Visual Studio
4. Import into Visual Studio
5. Put Picture in objects
Just bing them
Your Pictures need to be saved in a temporary folder and this folder has no Connection to the App
—CREATE FOLDER IN VISUAL STUDIO—
Notice the folder structure in this App. ALWAYS put folders in the Assets folder (makes it easier)
Right click on Assets to create more folders.
—IMPORT INTO VISUAL STUDIO—
Single Click on the folder you want the picture to be in (here i clicked on Assets)
Then Drag and Drop the picture from your folder to the folder in Visual Studio.
—PUT PICTURE ON OBJECTS—
Click on SplitPage.xaml to load the designer
Click the Object you want to fill with a picture (Here i clicked on the background):
Now, in the properties windows select BRUSH and Click the IMAGE BUTTON (you might have to resize the right bar to see the image source button)
Click on the ImageSource arrow down
Your picture is now visible and it should cover the entire background of the app.
notice that once you dragged the image into the assets folder in Visual Studio, you also move the image file to a different folder on the disk. You may delete the orginal picture in your temporary folder.
Leave a Reply