Operation is not valid while ItemsSource is in use

Oct 24, 2008 at 11:07 PM
i use avalondock with composite wpf  applicazion.
when i set a region to a dockablepanel and i try to move a windows obtain:

Operation is not valid while ItemsSource is in use. Access and modify elements with ItemsControl.ItemsSource instead.
in this method:

public FlyoutDockablePane(DockableContent content)

 

...

_referencedPane.Items.RemoveAt(_arrayIndexPreviousPane);

....

can you help me ?
thanks.