Close event

2 posts, 0 answers
  1. Sasa Grebenar
    Sasa Grebenar avatar
    8 posts
    Member since:
    Sep 2012

    Posted 23 Mar 2010 Link to this post

    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

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 26 Mar 2010 Link to this post

    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.
  3. DevCraft banner
Back to Top