How can i handle the event that occurs when an user clicks on the tab of docked control in docking manager?
For example there are three docked controls inside - A,B and C. I want to handle the moment in which used clicks on the tab A , tab B ana tab C.
I assume you have a set of docking windows docked as a tabbed group, and wish to capture the event when a particular tab is clicked. Presently there is no event available for this purpose, but you could do so as shown in the steps below :
1. Handle the DockingManager''s DockControlActivated event to get the activated control.
2. Check to see if this control belongs to a tabbed group as shown in the code below :
private bool TabbedGroupCheck(Control ctrl)
Syncfusion.Windows.Forms.Tools.DockHost dhost = ctrl.Parent as Syncfusion.Windows.Forms.Tools.DockHost;
Syncfusion.Windows.Forms.Tools.DockHostController dhc = dhost.InternalController as Syncfusion.Windows.Forms.Tools.DockHostController;
if(dhc.ParentController is Syncfusion.Windows.Forms.Tools.DockTabController)
3. If so get the docked control, and do the desired task.
Please refer to the sample application that shows how this can be done. Let me know if you need further assistance. We appreciate your interest in Syncfusion products.