Now that you have created a Silverlight application and added code to implement the C1Uploader class, the only thing left to do is run your application. To observe your application's run-time interactions, complete the following steps:
- Choose Debug | Start Debugging from the menu to run your application. The application appears with the button and panel visible.
- Click the Upload Photos button. Observe that the Open dialog box opens and initially only images are visible in the dialog box.
- Locate and select a .png or .jpg file and click Open to close the dialog box. Observe that the image you selected is now visible in the panel. The image is uploaded to the server, saved in the Pictures folder, then downloaded back to the client by way of the Image elements that you created in response to the UploadCompleted event.
- Click the Upload Photos button and click All in the drop-down box next to the File name box so all files are visible.
- Choose a non-image file, for example a text file, and click Open. A message appears indicating that the non-image file cannot be uploaded. This message box was specified in the code in the previous steps.
- Click OK to close the message box.
- Click the Upload Photos button. In the Open dialog box, choose multiple images (click CTRL as you click each image) and click Open. Observe that you can add multiple images to the panel at once.
What You've Accomplished
Congratulations! You've successfully completed the Uploader for Silverlight quick start and created a basic uploading application where image files are uploaded to the server, saved in a folder, and downloaded back to the client. You created a Silverlight application, added code to the application, implemented the server code, and ran the application to observe run time interactions.
See Also