Impossible to create WindowIcon as a resource in case of using path as Source.
See original GitHub issueEnvironment: Fedora 28 x64, LXDE.
Code:
<Application.Resources>
<WindowIcon Source="valid-path-to-file" x:Key="key"/>
</Application.Resources>
Causes an exception in runtime, while CodeBehind works fine.
Icon=new WindowIcon("valid-path-to-file");
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Distributing desktop shortcut file across network
Try using the UNC path vs a Shortcut that goes through a mapped network drive. Also in the logon scrip always replace the...
Read more >WPF: Cannot locate resource 'resource/favicon.ico' on ...
This creates Resources.resx under a Properties folder. I imported an existing favicon.ico into the resources and then tried setting the main ...
Read more >Not able to reference Image source with relative path in xaml
I have created a ClassLibrary project, and added a xaml of Window type. I wrote a console application and showing this wpf window....
Read more >Solved: Source tree not starting in windows 10
Solved: Hi Attlasian, My source tree did not start in my windows 10 local and ... the source tree icons visible for 10...
Read more >Adding content on the hard drive | Substance 3D Painter
It is possible to add resources to your libraries by placing new content directly on the hard drive at the right location.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jmacato suggested solution works well. Thank you.
@jmacato, so there is no opportunity to create WindowIcon in XAML?