␡
- 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
This chapter is from the book
Add an Icon
All Windows applications need an icon. If you don’t provide one, Visual Studio will use the default icon. The default image isn’t very exciting, and it doesn’t distinguish your application from all the others out there. So let’s use the Project Properties dialog to add a custom icon to Hello, World. To make that happen in a WPF application (other application types can be a little different), we need just three steps:
- Specify the icon file in the Application tab of Project Properties.
- Build the application to make the icon available.
- Set the icon property of the window in the WPF Designer.