Step 3 of 3: Running the Application

Now that you've created a WPF application and, set up the application, and added code to add functionality to the application, the only thing left to do is run your application. To observe your application's run-time interactions, complete the following steps:

1.   Choose Debug | Start Debugging from the menu to run your application. The application will appear similar to the following image:

 

 

2.   Click the ellipses button (...) on the C1FilePicker control. The Open dialog box will appear.

3.   In the Open dialog box, locate and select an image, and click Open to open the selected image:

 

4.   The selected image will appear in the list box and the name of the file will appear in the C1FilePicker control:

 

 

5.   Click the Clear File Selection button. Notice that the name of the file no longer appears in the C1FilePicker control:

 

 

6.   Click the ellipses button on the C1FilePicker control again. The Open dialog box will appear.

7.   In the Open dialog box, try to select more than one image. Notice that you cannot. That is because the Multiselect property is sent to False by default. To select multiple files at one, you would need to set the Multiselect property to True.

8.   Select a file in the Open dialog box and click Open. Notice that the second file appears listed in the C1FilePicker control and has been added to the List Box:

 

 

9.   Click the Clear List Items button; the list of files will be cleared.

 What You've Accomplished

Congratulations, you've completed the FilePicker for WPF quick start! You've created a simple application that uses FilePicker for WPF to select image files that are then displayed in another control.

To learn more about the features and functionality of ComponentOne FilePicker for WPF, see the Working with FilePicker for WPF topic. For examples of specific customizations, see the FilePicker for WPF Task-Based Help topic.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.