This action has been taken to attach an icon to WPF code:
Using Visual Studio, create Resources dir (place sample.ico in dir)
Right click Resources -> Add -> Existing Item -> select sample.ico
Right click sample.ico -> Properties -> Advanced -> Resource
Add <Window x:Class= .... Icon="Resources\sample.ico">
The icon displays properly on the dialog box. However, it does not display properly when the .exe is placed on the desktop.