DockManager MVVM - Header

Hello,

I have setup a DockingAdapter using the guide here:

I have an ObservableCollection of a simple class (Header and DockState) that the DockingAdapter ItemSource is set to.

I can create new tabs by adding items to the ObservableCollection and they appear, so that works.

But I cannot figure out how to get the Header of the tabs to update - I was thinking that a change to the ObservableCollection Header property would update the tab, but it does not.  I have checked, the changes are in the collection, but the tabs do not update.

I am using MVVMCross with SetProperty(ref header, value); to notify the UI of the change.

How can I get the tab header binding to update using MVVM?  I want to be able to change the collection and have the tab header update.  Is that possible?

Thanks for any help.



1 Reply

BR Bharathi Rajakantham Syncfusion Team January 5, 2021 03:22 AM UTC

Hi Shawn, 

Thanks for contacting Syncfusion Support, 

We have checked your query “ DockingManager MVVM for Header ” from our end .Currently we don’t have support for your requirement .Since our WPF Docking Manager is not an items control and it is not possible to acheive the MVVM pattern by normal way.But this can be acheived by creating an adapter or wrapper for the Docking Manager. 
 
Could you please refer the below article to acheive the MVVM pattern in Docking Manager. 
 


Regards, 
Bharathi R 


Loader.
Up arrow icon