How to determine which DockItem is the one currently active

Hi, I'm creating a RibbonWindow which has two controls, a Ribbon and a DockingManager populated by databinding an ObservableCollection<DockItem> object. I need to activate  or deactivate RibbonButtons depending on which DockItem is being selected in the DockingManager (it can be a docked or document item). How can I know which DockItem is the one currently active? Thanks in advance.


1 Reply

SN Sudharsan Narayanan Syncfusion Team September 30, 2021 03:44 AM UTC

Hi Fernando,

We have checked the query that “How to know the active window” from our end. We have prepared the sample to achieve the requirement. So, we suggest you use the
ActiveWindowChanged event to determine the active window. Please find the sample for the requirement from the below,

Sample: https://www.syncfusion.com/downloads/support/forum/169231/ze/DockingManagerActivewindow577284572

Please check the sample and let me know your concerns on this. We are happy to assist you.

Regards,
 
Sudharsan

Loader.
Up arrow icon