DocumentWindow and Binding to Collection

Docking/MDI for WPF Forum

Posted 15 years ago by Ciaran
Version: 4.5.0486

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:TabbedMdiContainer x:Name="_documentContainer" ItemsSource="{Binding}">
and the collection is defined like this:

ObservableCollection<DocumentWindow> _documentRoot

_documentContainer.ItemsSource = _documentRoot;

When a new document is opened, the code create a new DocumentWindow and adds it to the collection:

DocumentWindow newDocument = new DocumentWindow();
newDocument.Title = assetName;
newDocument.Content = newDesigner;
newDocument.Focusable = true;
newDocument.IsEnabled = true;


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?

[Modified at 04/07/2009 03:04 PM]

Comments (2)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Ciaran,

Unfortunately that is not supported at this time however we do have an item on our TODO list to add support for items source binding in the future.

Please see this post for why it doesn't work and what possible plans are:

Actipro Software Support

Posted 15 years ago by Ciaran
I appreciate the reply.
I couldn't find that original thread, that explains it. I'll return to adding the documents manually.
The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.