We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Itemssource of DocumentContainer

Thread ID:





80731 Apr 24,2009 07:31 AM UTC Apr 28,2009 03:55 PM UTC WPF 3
Tags: Tools
Arjan van der Stelt
Asked On April 24, 2009 07:31 AM UTC


I have an WPF application that uses a DocumentContainer to show multiple windows. The windows are added programmatically using the following lines of code:

TestDoc temp1 = new TestDoc();
DocumentContainer.SetHeader(temp1, "test1");

Where TestDoc is just a selfmade user control.

This works, but then I found out that DocumentContainer contains the ItemsSource property. So it would be great if I could use data binding to bind to an ObservableCollection. But when I tried this I got the following error:

'Binding' cannot be set on the 'ItemsSource' property of type 'DocumentContainer'.

Is it possible to bind an ObservableCollection, for example, to the ItemsSource of the DocumentContainer?!



Prabhu P [Syncfusion]
Replied On April 27, 2009 07:30 PM UTC

Hi Arjan,

Thank you for your interest in Syncfusion products.

Yes. It is possible to bind an ObservableCollection data to the DocumentContainer’s ItemsSource property. We have created a simple sample to demonstrate this feature. Please find the sample from the link given below.


Hope this will fulfill your requirement. Please let me know if you have any other queries.


Arjan van der Stelt
Replied On April 28, 2009 07:02 AM UTC


Thank you for the fast solution for my problem, it realy helped me.
I'm now able to bind the ItemsSource to an ObservableCollection. Here is my code:

public partial class ARACWindow : RibbonWindow
private ObservableCollection MyDocuments;
this.MyDocuments = new ObservableCollection();
this.MyContainer.ItemsSource = this.MyDocuments;

I added the property MyDocuments to the window and set the ItemsSource of the DocumentContainer to that property.

It workes great, now I can just add controls to the ObservableCollection and they are being showed in the DocumentContainer.



Prabhu P [Syncfusion]
Replied On April 28, 2009 03:55 PM UTC

Hi Arjan,

We are glad to hear that your problem has been resolved. Please let us know if you have any other queries.

Best Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon