Hi All,
Based on this forum thread I tried to obtain the affected child window of the DockWindowClosing event :
But, the
Is there any problem in my code, or it is a bad feature?
Best regards,
Peter
Based on this forum thread I tried to obtain the affected child window of the DockWindowClosing event :
private void raddock_DockWindowClosing(object sender, Telerik.WinControls.UI.Docking.DockWindowCancelEventArgs e){ //closing windows System.Windows.Forms.Form WindowClosing; //dockwindow if (e.DockWindow is Telerik.WinControls.UI.Docking.HostWindow) //can convert if (((Telerik.WinControls.UI.Docking.HostWindow)e.DockWindow).Content is System.Windows.Forms.Form) //save the closing window WindowClosing = (System.Windows.Forms.Form)((Telerik.WinControls.UI.Docking.HostWindow)e.DockWindow).Content;But, the
((Telerik.WinControls.UI.Docking.HostWindow)e.DockWindow).Content is always null.Is there any problem in my code, or it is a bad feature?
Best regards,
Peter