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
Post a Comment