AvalonDock icon indicating copy to clipboard operation
AvalonDock copied to clipboard

IconSource property does not work when binding defined in Style

Open JPhilC opened this issue 8 months ago • 1 comments

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

JPhilC avatar May 24 '24 13:05 JPhilC