In the latest build the ILayoutUpdateStrategy not work anymore.
I have tested the AvalonDock.MVVMTestApp, I have added a LayoutAnchorablePane with name="ToolsPane" but in the method BeforeInsertAnchorable of the LayoutInitializer the line
var toolsPane = layout.Descendents().OfType<LayoutAnchorablePane>().FirstOrDefault(d => d.Name == "ToolsPane");
return always a null value, perhaps when this method is called the layout is not built with his Descendants?
Comments: ** Comment from web user: adospace **
I have tested the AvalonDock.MVVMTestApp, I have added a LayoutAnchorablePane with name="ToolsPane" but in the method BeforeInsertAnchorable of the LayoutInitializer the line
var toolsPane = layout.Descendents().OfType<LayoutAnchorablePane>().FirstOrDefault(d => d.Name == "ToolsPane");
return always a null value, perhaps when this method is called the layout is not built with his Descendants?
Comments: ** Comment from web user: adospace **
ok, the ILayoutUpdateStrategy works fine, the problem is that latest version calls CollectGarbage on current Layout when is received to ensure that all panes are filled with at least a content. In sample project it find the ToolsPane that is empty and correctly removes it from the layout.
I'll find a workaround in next release.