
Hi, I have a WPF Deep Zoom control that Im trying to play with in conjunction with the TabbedMdiContainer.
Basically, I have a ViewModel that has an observable collection the paths (strings) to the deep zoom files I want to see. I was trying to bind the TabbedMdiContainer.ItemsSource prop to this collection, and have each of my deep zoom controls show up in its own document window.
But while ItemsSource is of type IEnumerable, I get an error that System.String cannot be converted to DocumentWindowContainer.
Even if I I set the ItemTemplate to a DocumentWindow like this:
<docking:TabbedMdiContainer ItemsSource="{Binding DeepZooms}">
<docking:TabbedMdiContainer.ItemTemplate>
<DataTemplate>
<docking:DocumentWindow Title="{Binding}" Description="Deep Zoom">
<Controls:MultiScaleImage MaxZoom="8.0" Source="{Binding}" />
</docking:DocumentWindow>
</DataTemplate>
</docking:TabbedMdiContainer.ItemTemplate>
</docking:TabbedMdiContainer>
The error is the same....
I don't want to create an observable collection of DocumentWindow in my view model. Am I not doing this the right way? Can I do this, if so how?
Thanks!