Example for MVVM on Docking

Docking/MDI for WPF Forum

Posted 14 years ago by sentient
I'm looking for an MVVM example that shows a custom databindig for the DockSite.

In particular I am trying to bind the Docking:Workspace to an ObservableCollection<WorkSpaceViewModel>

Is there an MVVM example in the 2010.2 release? I did see an older post, but this had the View directly referencing the model.

Thanks for any advice,

Comments (2)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA

The 2010.2 release did not include any MVVM enhancements, but that is one of the top items we plan on looking into now that 2010.2 is out.

This forum post contains most of the MVVM/Prism discussions.

Keep in mind that the Workspace is a ContentControl, eventhough it does ultimately contain the "documents" (through TabbedMdiHost/TabbedMdiContainer or StandardMdiHost). You could probably add an attached property, similar to how ItemsSource works. Then open/close documents based on the bound collection.

But again, this is something we are going to be looking into soon.

Actipro Software Support

Posted 14 years ago by sentient
Actually this thread is a bit closer to what I'm trying to achieve.

I want to stay away from Prism and it's Dependency Injection.

[Modified at 10/08/2010 10:16 AM]
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.