Modal Window Doesn't Close When Calling Close after ShowDialog

2 posts, 0 answers
  1. Jarred Froman
    Jarred Froman avatar
    57 posts
    Member since:
    Aug 2008

    Posted 18 Mar 2010 Link to this post

    Release 2010.1
    If you instantiate a RadWindow in code, call ShowDialog, and then Close, the window still opens and doesn't close.

     

    var window = new RadWindow  
                  {  
                       Header = "Test Window",  
                       ResizeMode = (ResizeMode.NoResize),  
                       Padding = new Thickness(10),  
                       WindowStartupLocation = (WindowStartupLocation.CenterScreen),  
                       WindowState = (WindowState.Normal),  
                       ModalBackground = new SolidColorBrush(Colors.White) {Opacity = .65D},  
                       MaxHeight = Application.Current.Host.Content.ActualHeight,  
                       Content = "Test Content" 
                  };  
     
     
    window.ShowDialog();

    // Other Code

    window.Close(); 
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 19 Mar 2010 Link to this post

    Hi Jarred,

     Thank you for pointing us this issue! We fixed the problem it will be included in one of the upcoming releases.

    Did you consider not openingn the window at all instead of openning and closing it immdiately when it is not needed?

    Kind regards,
    Miroslav Nedyalkov
    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