
Hi,
I am trying to use the Docking control in an MVVM scenario. I need to disable certain toolwindows dependend on which Document window is selected.
To get the active, selected document window I tried to databind my view model to "ActiveWindow" and "LastActiveDocument", but I get an error "DockSite.ActiveWindow cannot be set because it does not have an accessible set accessor".
I have set my binding to "Mode=OneWay", but obviously Wpf somehow still does something under the hood with the setter, if the dp property is not explicitely marked as readonly.
Is this a bug in your control or how can I get around this problem?
BTW: I would have expected a "DocumentItemsSource.SelectedDocument" property to get the active view model of the active selected document window which would make things a lot easier.
regards
Joachim
I am trying to use the Docking control in an MVVM scenario. I need to disable certain toolwindows dependend on which Document window is selected.
To get the active, selected document window I tried to databind my view model to "ActiveWindow" and "LastActiveDocument", but I get an error "DockSite.ActiveWindow cannot be set because it does not have an accessible set accessor".
I have set my binding to "Mode=OneWay", but obviously Wpf somehow still does something under the hood with the setter, if the dp property is not explicitely marked as readonly.
Is this a bug in your control or how can I get around this problem?
BTW: I would have expected a "DocumentItemsSource.SelectedDocument" property to get the active view model of the active selected document window which would make things a lot easier.
regards
Joachim