Embed Icons into WPF Application as Resource
        Posted  
        
            by rattrick1
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by rattrick1
        
        
        
        Published on 2010-06-11T15:48:49Z
        Indexed on 
            2010/06/11
            15:52 UTC
        
        
        Read the original article
        Hit count: 282
        
I am trying to embed an icon into my my WPF application so that I can pull it out for use as an icon in the Window 7 JumpList using the following code:
newScene.IconResourcePath = System.Reflection.Assembly.GetEntryAssembly().Location;
newScene.IconResourceIndex = 0;
I've gotten it to work using the following method: http://dennisdel.com/?p=38
However, it doesn't seem like the best approach and it seems like there should be an easier way to embed an icon resource into my application while still leaving the "Icon and Manifest" option checked in the Application properties for my program.
I've tried numerous methods including setting the icon build action as a resource and an embedded resource, but every time I open my .exe in a resource editor, the icon does not appear.
Any suggestions?
© Stack Overflow or respective owner