I have included an icon file inside my Resources.resx that I\'d like to show on a TreeViewItem that is inside a stackpanel.
1)Can .ico files be used for this purpose
First: Add resources rsx then: add images as images to the resource file and set the image build action to Resource. Now you can access the images like this: