xceedsoftware / wpftoolkit

All the controls missing in WPF. Over 1 million downloads.
Other
3.9k stars 878 forks source link

DockingManager.ActiveContent returns the LayoutAnchorable instead of its LayoutAnchorable.Content #1779

Closed jonasdoerr closed 2 months ago

jonasdoerr commented 3 months ago

Hi all.

I have updated Extended.Wpf.Toolkit from 4.4.0 to 4.6.1. Before the update, the DockingManager.ActiveContent property returned one of my view models that I had assigned to DockingManager.AnchorablesSource, depending on which is active. After the update, the ActiveContent property returns the LayoutAnchorable instead that contains my view model in its Content property.

Is this change intentional?

Thanks, Jonas

XceedBoucherS commented 3 months ago

Hi,

Yes this is to fix another issue when the Content of LayoutDocuments/LayoutAnchorables are empty at start and fills up when a selection is made. You can still access your ViewModel from the returned LayoutAnchorable's Content property.

Thank you,

jonasdoerr commented 2 months ago

Thank you!