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

Modal Window Doesn't Close When Calling Close after ShowDialog

1 Answer 45 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jarred Froman
Top achievements
Rank 1
Jarred Froman asked on 18 Mar 2010, 08:30 PM

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(); 

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 19 Mar 2010, 02:24 PM
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.
Tags
Window
Asked by
Jarred Froman
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or