question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Impossible to create WindowIcon as a resource in case of using path as Source.

See original GitHub issue

Environment: 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:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
FlaviusHoukcommented, Oct 8, 2018

@jmacato suggested solution works well. Thank you.

0reactions
FlaviusHoukcommented, Oct 8, 2018

@jmacato, so there is no opportunity to create WindowIcon in XAML?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found