Hello,
I have an application on Silverlight using radwindow on a radwindow. While closing the child radwindow, the unload event of its parent will fire.
Here I am adding my sample applications codes,
This is to open a radwindow from the main container, its name is “RADWINDOW1”
Dim radwindow1 As New Telerik.Windows.Controls.RadWindow Dim aa As New PopUpWindow() radwindow1 .Content = aa radwindow1 .Width = 500 radwindow1 .Height = 500 radwindow1 .WindowStartupLocation = WindowStartupLocation.CenterScreen radwindow1 .ShowDialog() |
Inside the first popup ,opeing the another radwindow, its name is “RADWINDOW2”.Here I added the code
Private Sub Button_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Dim radwindow2 As New Telerik.Windows.Controls.RadWindow Dim aa As New PopUp2() radwindow2.Content = aa radwindow2.Width = 500 radwindow2.Height = 500 radwindow2.WindowStartupLocation = WindowStartupLocation.CenterScreen AddHandler ss.Closed, AddressOf OnClosed radwindow2.ShowDialog() End Sub |
While closing the radwindow i.e RADWINDOW2 I am trying to open another radwindow, its name is RADWINDOW3 on the close event of RADWINDOW2.Here I added the code.
Sub OnClosed() Dim radwindow3 As New Telerik.Windows.Controls.RadWindow Dim aa As New PopUp2() radwindow3.Content = aa radwindow3.Width = 500 radwindow3.Height = 500 radwindow3.WindowStartupLocation = WindowStartupLocation.CenterScreen radwindow3.ShowDialog() End Sub |
While doing like this RADWINDOW1’s unload event fires.
Any suggestion on this problem.How to avoid this ???...........