Setting the ico file is simple. You add it to your project and reference it in the project properties under the application tab like this.
Setting the ico file for a WPF project |
- Disable the visual studio hosting process in the debug tab of the project properties. This causes you to debug against the actual executable that has the ico file. I don't know why the proxy doesn't have it.
- Explicitly specify the ico file in the main page XAML like this.
<Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Icon="Images\pur.ico" .../>
No comments:
Post a Comment