This is a migrated thread and some comments may be shown as answers.

Close event

1 Answer 76 Views
Window
This is a migrated thread and some comments may be shown as answers.
Sasa Grebenar
Top achievements
Rank 1
Sasa Grebenar asked on 24 Mar 2010, 12:59 AM
Hello...

I have problem with Close event on RadWIndow...I want do something befor I close user control with RadWindow...

explanation:
I have MainPage.xaml  with button...When I click this button I open another xaml SilverlightUserControl.xaml which contain RadWindow..Before I close this SilverlightUserControl.xaml with RadWindow I want change some variables...and then close this window... 

Or

Can I in MainPage forbid to open SilverlightUserControl.xaml if this xaml is still opened...
If somenoe have example in VB.NET I will be apprichiated...

Thnx

SASA

SilverlightUserControl.xaml :

 

 

<telerikNavigation:RadWindow x:Name="window" WindowStartupLocation="CenterScreen" CanClose="True" Closed="window_Closed"

Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> 

 

</telerikNavigation:RadWindow>

SilverlightUserControl.xaml.vb
 

 

 

Private s

 

 

ub window_Closed(ByVal sender As System.Object, ByVal e As Telerik.Windows.Controls.WindowClosedEventArgs)

 

 

 

 

        
    '...
do something ....
    Dim n as boolena
    n=false

End
Sub

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 26 Mar 2010, 05:59 PM
Hi Sasa,

Thank you for contacting us.

Attached I am sending you a sample project in which is illustrated a better approach of using the RadWindow. This approach resembles the ChildWindow in Silverlight Toolkit.

Please go through the project and if you need further assistance let us know.


All the best,
Konstantina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Window
Asked by
Sasa Grebenar
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or