documentWindow1.CloseAction = Telerik.WinControls.UI.Docking.DockWindowCloseAction.Hide;
SplitPanelElement e = documentWindow1.TabStrip.SplitPanelElement;
DockLayoutPanel panel = e.Children[3] as DockLayoutPanel;
RadButtonElement ee = panel.Children[0] as RadButtonElement;
ee.Tag = new RadButtonElement();
ee.Click+=ee_Click;
Whenever the click event of the close button in DocumentWindow is called Tag is null. The same thing happens when you Hide and Show the documentwindow as well. It seems like Telerik is actually destroying the document instead of hiding it.
SplitPanelElement e = documentWindow1.TabStrip.SplitPanelElement;
DockLayoutPanel panel = e.Children[3] as DockLayoutPanel;
RadButtonElement ee = panel.Children[0] as RadButtonElement;
ee.Tag = new RadButtonElement();
ee.Click+=ee_Click;
Whenever the click event of the close button in DocumentWindow is called Tag is null. The same thing happens when you Hide and Show the documentwindow as well. It seems like Telerik is actually destroying the document instead of hiding it.