private void XPanderPanelListControlRemoved(object sender, ControlEventArgs e) { BSE.Windows.Forms.XPanderPanelList xpanderPanelList = sender as BSE.Windows.Forms.XPanderPanelList; BSE.Windows.Forms.XPanderPanel xpanderPanel = e.Control as BSE.Windows.Forms.XPanderPanel; if ((xpanderPanel != null) && (xpanderPanelList != null)) { MessageBox.Show(string.Format("'{0}' removed from '{1}'", xpanderPanel.Text, xpanderPanelList.Name)); } }
private void btnExpandXPander_Click(object sender, EventArgs e) { if (xPanderPanel10 != null) { BSE.Windows.Forms.XPanderPanelList panelList = xPanderPanel10.Parent as BSE.Windows.Forms.XPanderPanelList; if (panelList != null) { panelList.Expand(xPanderPanel10); } } }