Delete the tab with documents specified in avalondok

My application does not have multiple documents. Therefore, I do not need the tab shown in LayoutDocumentPane. I found that it can be customized using the style here. http://avalondock.codeplex.com/wikipage?title=Document%20tab%20restyling

But it seems complicated. Is there an easy way to do this?

+4
source share
2 answers

Avalondock 1.x has a property that does exactly what you need. It is called DocumentPane.ShowHeader .

It does not exist (yet?) On 2.x

If you want to modify avalondock to do what you need, I sent a patch to a project that adds this feature.

Included in this ticket: http://avalondock.codeplex.com/workitem/15626

+1
source

If you do not need several documents, you probably do not need documents at all. You must put your content in a regular dockable panel.

In AvalonDock 2.x you can use LayoutAnchorable and in 1.x use DockableContent, usually nested in suitable containers.

+4
source

Source: https://habr.com/ru/post/1436556/


All Articles