This project is read-only.

Bind UserControl to Avalondock

Jul 26, 2014 at 10:58 PM
Hi,

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 vb.net).

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)?

Thanks!
Aug 19, 2014 at 12:35 PM