c# - How to apply the icon for my popup window in WPF? -


i have created 2 windows in project root folder, mainwindow.xaml , popupwindow.xaml respectively.

through project properties, managed set icon mainwindow couldn't find available settings popupwindow. therefore, popupwindow still showing system default icon in top left corner.

can tell me can set customized icon popupwindow?

many thanks.

edit:

i guess made mistake in xmal code previously. :[ should have been more careful code. anyways, here correct one

icon="/[your project name];component/[your ico file name]"

are running in debug mode in visual studio? wpf windows don't inherit icon application in debug mode. try ctrl+f5 ("start without debugging") , see if icons appear.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -