regionadapter

Prism RegionAdapter - Removing then Adding View

依然范特西╮ 提交于 2019-12-12 20:57:20
问题 I have a prism/wpf/mef solution that contains an AvalonDock. I created a RegionAdapterBase<Pane> class that handles creating and removing the Panes from AvalonDock. Heres the problem I'm running into: I click a button in my menu and a view is registered with a region and displayed in my DocumentPane I click the close button in AvalonDock to close the tab and remove the view I click the same menu button to add it back again I receive the error: "Specified element is already the logical child