0

I am using AvalonDock (V2) with a DocumentsSource:

<a:DockingManager DocumentsSource="{Binding Items}"/>

I would like to disable the possibility to close a panel using a Style or something that works with a DocuemntsSource.

If possible I would like to have the closing Element to dock in a collapsed manner to the DocumentManager instead of closing.

Jaster
  • 8,255
  • 3
  • 34
  • 60

2 Answers2

0

For those who are intrested: there is a CanClose Propery that can be bound...

Jaster
  • 8,255
  • 3
  • 34
  • 60
0

The CanClose() property is not working for LayoutAnchorable control.

But it can work if you can change the source code to disable the close button.

In my case I had to go in that route.

Nani
  • 1