Dirkster99 / AvalonDock

Our own development branch of the well known WPF document docking library
Microsoft Public License
1.39k stars 318 forks source link

IconSource property does not work when binding defined in Style #483

Open JPhilC opened 3 months ago

JPhilC commented 3 months ago

Hi there,

I have been struggling to get icons to display in LayoutItems and LayoutAnchorableItems by binding to an IconsSource property. In the end I cloned your repo hoping to see where I was going wrong but you seem to have the same problem in the MVVMTestApp. I tried this one as it most closely resembles how I am using AvalonDock.

The Document tabs should shown the document.png images but they do not. You set the IconSource property in the constructor of the viewmodel but the icon is not displayed when you open a document.

This is quite important for me as I want to shown a padlock to some that a file is locked by another user.

Kind regards,

Phil

spaceman101 commented 1 month ago

I have the same problem. Any help?