c# - How to fill AvalonDock 2.0 application only with AnchorableWindows - no DocumentPane -
i fill avalondock application "tool" windows without document. can manually minimize documentpane area if possible, fill small area anchorable window layoutdocumentpane's width , height zero.
problem avalondock framework's assumption there @ least single empty documentpane becomes apparent in case. though there no document, emptry space of documentpane overlapped or underlapped other tool windows near it. makes window partly invisible or under-filled.
what tried in vain far:
- removed layoutdocumentpane tag dockmanager declaratrion
- set dockwidth , dockheight of layoutdocumentpane zero
- manually minimized documentpane , serialize layout
any clue appreciated
there seems no way except changing source code. in collectgarbage method of layoutroot.cs, commented out following code , got wanted - avalondock application without documentpane. if there no method this, highly suggest author have option without modifying source. hope helps others me.
if (emptypane layoutdocumentpane && this.descendents().oftype<layoutdocumentpane>().count(c => c != emptypane) == 0) continue;
Comments
Post a Comment