c# - WPF Project Icon Causes XamlParseException -


i kind of embarrassed need this, trying add icon application windows in project.

steps used add image project:

1) right-click on project 2) select properties 3) select resources tab 4) click add resource existing file 5) select logo.jpg 

steps used select icon:

1) go .xaml in vs designer. 2) open properties tab window 3) select icon icon dropdown menu. 

when run code in debugger, window displayed

exception thrown: 'system.windows.markup.xamlparseexception' in  presentationframework.dll 

the use of dropdown menu in properties tab window adds following xaml window

icon="pack://siteoforigin:,,,/resources/logo.jpg" 

edit: different post reportedly duplicate of not asking dynamically changing image , asking compiler error associated xaml code.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

.htaccess - ERR_TOO_MANY_REDIRECTS htaccess -