Hi,
I try to check whether we can use the DockingManager for our new product and the first important thing is using Databinding from an ObservableCollection in our view model to the ItemSource in the Dockingmanager. To externally manage adding from tabs/DockItems to the DockingManager. It works correct if the ObservableCollection is of type DockItem but he ignores the DockItems with the State DockState.Document. Adding items to the ObseravbleCollection at runtime works only if the state is not Document. Is there any reason for?
For Example here works only the first Dockitem:
Tabs = new ObservableCollection<DockItem>();
Tabs.Add(new DockItem() {Header = "Empty Start item", State = DockState.Dock});
Tabs.Add(new DockItem() {Header = "Second Empty Start item", State = DockState.Document});
Is there also any possibility to bind the itemsource to an ObservableCollection of other types (own view models) and manage the bindings of their properties by templates (DockitemTemplates?) ?
Thanks, Nelly