An active dock item is the item that has been clicked or contains a focused control.
Before a dock item is activated, the DockItemActivating event fires. It allows you to prevent item activation. The notification DockItemActivated event fires after the item has been activated.