我正在动态地将 radpanes 添加到停靠主机。但是我想在窗格关闭时捕获。但我似乎无法找到如何。
这是我用来动态添加 radpanes 的代码。我可以添加什么来连接窗格的关闭?
public RadDocumentPane AddDocumentPane(string title, UserControl control, string paneGroup, DockPosition position)
{
RadPaneGroup group = FindName(paneGroup) as RadPaneGroup;
RadDocumentPane r = null;
if (group != null)
{
r = new RadDocumentPane();
r.Title = title;
r.Content = control;
group.AddItem(r, position);
}
return r;
}