Bind UserControl to Avalondock

Jul 26, 2014 at 9:58 PM

my first time here :)

My program consists of many UserControls(always the same class just with different data in the ViewModel) Up to now i put the Usercontrols in a ListView. But i want to use the nice AvalonDock.

I looked up the examples and also the source of the SharpDevelop. But don't get it working(i aslo need to transform c# to

The Problem is, that in the example they bind the dockingmanager to a Collection of ViewModels and add a DataTemplate with a TextBox. But i don't know how i do this with UserControls. I can add something like in the DataTemplate but how do i set the DataContext of the UserControl. Or can i Bind some Collection of userControls directly to the Dockingmanager(like the ViewModels)?

Aug 19, 2014 at 11:35 AM