I figured out how to achieve almost everything I wanted.
In the method "BeforeInsertAnchorable" I simply call anchorableToShow.AddToLAyout().
And to change DockWidth and DockHeight I have modified avalon to return the pane in which the anchorable has been added.
Hope this can help someone else.
In the method "BeforeInsertAnchorable" I simply call anchorableToShow.AddToLAyout().
And to change DockWidth and DockHeight I have modified avalon to return the pane in which the anchorable has been added.
Hope this can help someone else.