XP TaskPane

Hi,

Can you tell me what event to use to intercept when the user clicks the close button on an XP Task Pane?

Thanks
Jeff

1 Reply

DK Dhivya K Syncfusion Team March 4, 2010 12:54 PM UTC

Hi Jeff,

Thank you for your interest in Essential Tools.

Internally the close button in the XPTaskPane is a BarItem. You can handle the Click event of this item as below :

this.xpTaskPane1.HeaderRightToolbar.Items[1].Click += new EventHandler(CloseButtonClicked);

private void CloseButtonClicked (object sender, EventArgs args)
{
MessageBox.Show("XPTaskPane Closed");
}

Here is a sample:

http://www.syncfusion.com/uploads/redirect.aspx?file=Tools_WF_xptaskpane_8a0365c9.zip&team=development

Please let me know if you have any question.

Regards,
Dhivya

Loader.
Up arrow icon