This question is locked. New answers and comments are not allowed.
Using the example article at http://www.telerik.com/help/silverlight/radwindow-how-to-use-radwindow-as-user-control.html I was able to create a complex reusable Radwindow named TeeUC. To display the window and execute the code I ...
TeeUC MyAddTeesWindow = new TeeUC();
myAddTeesWindow.Show();
This code works fine and the code in the UserControl Code-behind begins executing where the InitializeComponent() is located.
However my problem is that if the window is already displayed the above code throws an exception. So I need to (1) detect if the window is already displayed and (2) somehow turn control over to the code in the window's code-behind without instantiating it.
Is this possible? How can this be done?
Thanks,
Gary
TeeUC MyAddTeesWindow = new TeeUC();
myAddTeesWindow.Show();
This code works fine and the code in the UserControl Code-behind begins executing where the InitializeComponent() is located.
However my problem is that if the window is already displayed the above code throws an exception. So I need to (1) detect if the window is already displayed and (2) somehow turn control over to the code in the window's code-behind without instantiating it.
Is this possible? How can this be done?
Thanks,
Gary