Hi,
I'm attempting to bind a collection of DocumentWindow objects to a MDI host but I'm running into an issue.
The XAML is like this:and the collection is defined like this:
When a new document is opened, the code create a new DocumentWindow and adds it to the collection:
All this works for the first document, but subsequent document tabs cannot be activated and I'm unable to find where I'm going wrong. The tabs appear, but clicking on the tab has no effect.
Any ideas what I've missed?
Thanks,
Ciaran
[Modified at 04/07/2009 03:04 PM]
I'm attempting to bind a collection of DocumentWindow objects to a MDI host but I'm running into an issue.
The XAML is like this:
<docking:Workspace>
<docking:TabbedMdiHost>
<docking:TabbedMdiContainer x:Name="_documentContainer" ItemsSource="{Binding}">
</docking:TabbedMdiContainer>
</docking:TabbedMdiHost>
</docking:Workspace>
ObservableCollection<DocumentWindow> _documentRoot
:
:
:
_documentContainer.ItemsSource = _documentRoot;
DocumentWindow newDocument = new DocumentWindow();
newDocument.Title = assetName;
newDocument.Content = newDesigner;
newDocument.Focusable = true;
newDocument.IsEnabled = true;
_documentRoot.Add(newDocument);
Any ideas what I've missed?
Thanks,
Ciaran
[Modified at 04/07/2009 03:04 PM]