- In a Nutshell
- Task List
- Solutions, Projects and Stuff
- Solution And Project Properties
- Add an Icon
- 1 Set the Application Icon Property
- 2 Build the Application
- 3 Set the Window Property
- Did it Work?
- One More Time...
- Take Control
- Arranging Windows
- More Than Editing...
- List Members
- Parameter Information
- Road Maps
- Review
2 Build the Application
There are a lot of files involved in creating a Visual Studio application. In addition to the source files that you create, the resource files like icons that you create or reference, and the final executable created by the compiler, there are intermediate files that Visual Studio creates for you. When you set properties or resources, you need to tell Visual Studio to recreate some of these “behind-the-scenes” files so that they’re available to other components like the designers. You do that by BUILDING the application.
A Press F5 or choose Build Solution from the Build menu so that the icon will be available to the WPF Designer.