Quantcast
Channel: AvalonDock
Viewing all articles
Browse latest Browse all 2690

New Post: [Version 2.0] add an icon/png to a LayoutDocument

$
0
0

I would like to be able to put an icon/png on my LayoutDocument tabs.  Is this Possible?

I tried just adding the path to an ico file (I also tried a png file) like this:

<avalonDock:LayoutDocument Title="Tab1"
                           IconSource="Images\MyImage_16.ico"
                           IsActive="True"
                           IsSelected="True">

But that did not work.  I am sure that the file reference is correct because other parts of my app (the Ribbon) are referencing files in that folder.

Is there a way to get an Icon on an tab?


Viewing all articles
Browse latest Browse all 2690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>